tree: 7ff252f0d80a849e358be727384cf35e1d141502 [path history] [tgz]
  1. .eslintrc
  2. .nycrc
  3. CHANGELOG.md
  4. core.json
  5. index.js
  6. LICENSE
  7. package.json
  8. 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