prc b6c02717e6 Upload complete no-internet building environment. 1 рік тому
..
License b6c02717e6 Upload complete no-internet building environment. 1 рік тому
Readme.md b6c02717e6 Upload complete no-internet building environment. 1 рік тому
index.js b6c02717e6 Upload complete no-internet building environment. 1 рік тому
package.json b6c02717e6 Upload complete no-internet building environment. 1 рік тому

Readme.md

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