Snow 1d0b9c5323 增加了node环境 1 month ago
..
test 1d0b9c5323 增加了node环境 1 month ago
.eslintrc 1d0b9c5323 增加了node环境 1 month ago
.nycrc 1d0b9c5323 增加了node环境 1 month ago
CHANGELOG.md 1d0b9c5323 增加了node环境 1 month ago
LICENSE 1d0b9c5323 增加了node环境 1 month ago
README.md 1d0b9c5323 增加了node环境 1 month ago
core.json 1d0b9c5323 增加了node环境 1 month ago
index.js 1d0b9c5323 增加了node环境 1 month ago
package.json 1d0b9c5323 增加了node环境 1 month ago

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