DEP0191:repl.builtinModules


类型:仅文档(支持 --pending-deprecation

¥Type: Documentation-only (supports --pending-deprecation)

node:repl 模块导出一个包含内置模块数组的 builtinModules 属性。此方法不完整,与已弃用的 repl._builtinLibsDEP0142)兼容,最好依赖 require('node:module').builtinModules

¥The node:repl module exports a builtinModules property that contains an array of built-in modules. This was incomplete and matched the already deprecated repl._builtinLibs (DEP0142) instead it's better to rely upon require('node:module').builtinModules.