Neurophysiologically Pseudoscientific Manatee
    Wondering what’s next for npm?Check out our public roadmap! »

    is-builtin-module

    3.1.0 • Public • Published

    is-builtin-module

    Check if a string matches the name of a Node.js builtin module

    Install

    $ npm install is-builtin-module
    

    Usage

    const isBuiltinModule = require('is-builtin-module');
    
    isBuiltinModule('fs');
    //=> true
    
    isBuiltinModule('fs/promises');
    //=> true
    
    isBuiltinModule('node:fs/promises');
    //=> true
    
    isBuiltinModule('unicorn');
    //=> false

    Related


    Get professional support for this package with a Tidelift subscription
    Tidelift helps make open source sustainable for maintainers while giving companies
    assurances about security, maintenance, and licensing for their dependencies.

    Install

    npm i is-builtin-module

    DownloadsWeekly Downloads

    1,883,327

    Version

    3.1.0

    License

    MIT

    Unpacked Size

    3.3 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar