is-core-module-es
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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.

/is-core-module-es/

    Package Sidebar

    Install

    npm i is-core-module-es

    Weekly Downloads

    0

    Version

    1.0.1

    License

    (MIT OR Apache-2.0)

    Unpacked Size

    15.9 kB

    Total Files

    11

    Last publish

    Collaborators

    • ukstv