Skip to content
master
Switch branches/tags
Code

Files

Permalink
Failed to load latest commit information.

builtins

List of node.js builtin modules.

build status Greenkeeper badge

Example

Get list of core modules for current Node.js version:

var builtins = require('builtins')()

assert(builtins.indexOf('http') > -1)

Get list of core modules for specific Node.js version:

var builtins = require('builtins')({ version: '6.0.0' })

assert(builtins.indexOf('http') > -1)

Add experimental modules to the list:

var builtins = require('builtins')({ experimental: true })

assert(builtins.indexOf('wasi') > -1)

License

MIT