You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
吴治霖
c1d37358dd
|
1 year ago | |
---|---|---|
.. | ||
node_modules | 1 year ago | |
License | 1 year ago | |
Readme.md | 1 year ago | |
index.js | 1 year ago | |
package.json | 1 year ago |
Readme.md
builtins
List of node.js builtin modules.
Usage
const builtins = require('builtins')
Get list of core modules for current Node.js version:
assert(builtins().includes('http'))
Get list of core modules for specific Node.js version:
assert(builtins({ version: '6.0.0' }).includes('http'))
Get list of core modules present in one or mode Node.js versions:
assert(builtins({ version: '*' }).includes('worker_threads'))
Add experimental modules to the list:
assert(builtins({ experimental: true }).includes('wasi'))
License
MIT