Bakhtina Sofya b84cb877be 1st comm | 2 weeks ago | |
---|---|---|
.. | ||
test | 2 weeks ago | |
.eslintrc | 2 weeks ago | |
.nycrc | 2 weeks ago | |
CHANGELOG.md | 2 weeks ago | |
LICENSE | 2 weeks ago | |
README.md | 2 weeks ago | |
core.json | 2 weeks ago | |
index.js | 2 weeks ago | |
package.json | 2 weeks ago |
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