root 3bf41bf355 update | il y a 1 an | |
---|---|---|
.. | ||
index.js | il y a 1 an | |
license | il y a 1 an | |
package.json | il y a 1 an | |
readme.md | il y a 1 an |
Check if a string matches the name of a Node.js builtin module
$ npm install --save is-builtin-module
var isBuiltinModule = require('is-builtin-module');
isBuiltinModule('fs');
//=> true
isBuiltinModule('unicorn');
//=> false :(
MIT © Sindre Sorhus