node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org »

is-builtin-module

is-builtin-module Build Status

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('unicorn');
//=> false

Related

License

MIT © Sindre Sorhus