|
|
5 months ago | |
|---|---|---|
| .. | ||
| test | 5 months ago | |
| .eslintrc | 5 months ago | |
| .nycrc | 5 months ago | |
| CHANGELOG.md | 5 months ago | |
| LICENSE | 5 months ago | |
| README.md | 5 months ago | |
| core.json | 5 months ago | |
| index.js | 5 months ago | |
| package.json | 5 months 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