You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Mieriki
fbcabf01d3
|
8 months ago | |
---|---|---|
.. | ||
test | 8 months ago | |
.eslintignore | 8 months ago | |
.eslintrc | 8 months ago | |
.nycrc | 8 months ago | |
CHANGELOG.md | 8 months ago | |
LICENSE | 8 months ago | |
README.md | 8 months ago | |
core.json | 8 months ago | |
index.js | 8 months ago | |
package.json | 8 months ago |
README.md
is-core-module
Is this specifier a node.js core module? Optionally provide a node version to check; defaults to the current node version.
Example
var isCore = require('is-core-module');
var assert = require('assert');
assert(isCore('fs'));
assert(!isCore('butts'));
Tests
Clone the repo, npm install
, and run npm test