huituanxueqian 7740728225 commit | il y a 1 an | |
---|---|---|
.. | ||
test | il y a 1 an | |
.eslintrc | il y a 1 an | |
.nycrc | il y a 1 an | |
CHANGELOG.md | il y a 1 an | |
LICENSE | il y a 1 an | |
README.md | il y a 1 an | |
core.json | il y a 1 an | |
index.js | il y a 1 an | |
package.json | il y a 1 an |
Is this specifier a node.js core module? Optionally provide a node version to check; defaults to the current node version.
var isCore = require('is-core-module');
var assert = require('assert');
assert(isCore('fs'));
assert(!isCore('butts'));
Clone the repo, npm install
, and run npm test