![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | test/ | 8 months ago | - | |
![]() | CHANGELOG.md | 8 months ago | 13K | |
![]() | LICENSE | 8 months ago | 1.1K | |
![]() | README.md | 8 months ago | 1.6K | |
![]() | core.json | 8 months ago | 5.6K | |
![]() | index.js | 8 months ago | 1.7K | |
![]() | package.json | 8 months ago | 1.8K |
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