is-core-module-es
v1.0.1
Published
Is this specifier a node.js core module?
Downloads
2
Maintainers
Readme
is-core-module-es
ESM fork of is-core-module
Is this specifier a node.js core module? Optionally provide a node version to check; defaults to the current node version.
Example
import { isCore } from 'is-core-module-es';
import assert from 'assert';
assert(isCore('fs'));
assert(!isCore('butts'));
Tests
Clone the repo, pnpm install
, and run pnpm run test
.