/** * @param {boolean} isHTTPS true when need https module, otherwise false * @returns {Promise} */ module.exports = function (isHTTPS) { return isHTTPS ? import("https") : import("http"); };