HTTPS 和 HTTP 导入


【HTTPS and HTTP imports】

稳定性: 1 - 实验性

在启用 --experimental-network-imports 标志时,支持使用 https:http: 导入基于网络的模块。这允许在 Node.js 中进行类似 Web 浏览器的导入,但由于在受信环境中运行而非浏览器沙箱时的应用稳定性和安全性考虑,会有一些差异。

【Importing network based modules using https: and http: is supported under the --experimental-network-imports flag. This allows web browser-like imports to work in Node.js with a few differences due to application stability and security concerns that are different when running in a privileged environment instead of a browser sandbox.】