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