Dailin 415ba84223 | pirms 3 gadiem | ||
---|---|---|---|
.. | |||
.github | 删除 | pirms 3 gadiem | |
test | 删除 | pirms 3 gadiem | |
.eslintrc | pirms 3 gadiem | ||
.travis.yml | pirms 3 gadiem | ||
CHANGELOG.md | pirms 3 gadiem | ||
LICENSE | pirms 3 gadiem | ||
README.md | pirms 3 gadiem | ||
core.json | pirms 3 gadiem | ||
index.js | pirms 3 gadiem | ||
package.json | pirms 3 gadiem |
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