documentit/node_modules/is-builtin-module/readme.md
2018-01-05 10:48:13 -08:00

625 B

is-builtin-module Build Status

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

Install

$ npm install --save is-builtin-module

Usage

var isBuiltinModule = require('is-builtin-module');

isBuiltinModule('fs');
//=> true

isBuiltinModule('unicorn');
//=> false :(

License

MIT © Sindre Sorhus