peach a19a732be8 commit message | 2 years ago | |
---|---|---|
.. | ||
test | 2 years ago | |
.eslintrc | 2 years ago | |
.nycrc | 2 years ago | |
CHANGELOG.md | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
core.json | 2 years ago | |
index.js | 2 years ago | |
package.json | 2 years 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