Have ideas to improve npm?Join in the discussion! »

    builtins

    4.0.0 • Public • Published

    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

    Keywords

    none

    Install

    npm i builtins

    DownloadsWeekly Downloads

    3,403,710

    Version

    4.0.0

    License

    MIT

    Unpacked Size

    3.69 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar
    • avatar