@no-shims/is-core-module
v2.14.0
Published
Is this specifier a node.js core module?
Downloads
844
Maintainers
Readme
@no-shims/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 assert from 'node:assert'
import isCore from '@no-shims/is-core-module'
assert(isCore('fs'))
assert(!isCore('butts'))
Tests
Clone the repo, pnpm install
, and run pnpm test