张益铭 6a5f1810f9 chore:更换到主分支 4 years ago
..
.github 9064b372e8 docs:更新文档 4 years ago
test 9064b372e8 docs:更新文档 4 years ago
.eslintrc 9064b372e8 docs:更新文档 4 years ago
CHANGELOG.md 6a5f1810f9 chore:更换到主分支 4 years ago
LICENSE 9064b372e8 docs:更新文档 4 years ago
README.md 9064b372e8 docs:更新文档 4 years ago
core.json 6a5f1810f9 chore:更换到主分支 4 years ago
index.js 9064b372e8 docs:更新文档 4 years ago
package.json 6a5f1810f9 chore:更换到主分支 4 years ago

README.md

is-core-module Version Badge

Build Status 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