tree: 63adf1c969e90450fc4fb4d97161b93274ae5da0 [path history] [tgz]
  1. test/
  2. .eslintrc
  3. .nycrc
  4. CHANGELOG.md
  5. core.json
  6. index.js
  7. LICENSE
  8. package.json
  9. README.md
node_modules/is-core-module/README.md

is-core-module Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

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