NET-Web-API-w-Angular/my-app/node_modules/builtins
2024-02-08 19:38:41 -05:00
..
index.js Updated the files. 2024-02-08 19:38:41 -05:00
License Updated the files. 2024-02-08 19:38:41 -05:00
package.json Updated the files. 2024-02-08 19:38:41 -05:00
Readme.md Updated the files. 2024-02-08 19:38:41 -05:00

builtins

CI

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