1.0.1 • Published 2 years ago

is-core-module-es v1.0.1

Weekly downloads
-
License
(MIT OR Apache-2....
Repository
github
Last release
2 years ago

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.