Is this specifier a node.js core module? Optionally provide a node version to check; defaults to the current node version.
import assert from 'node:assert'
import isCore from '@no-shims/is-core-module'
assert(isCore('fs'))
assert(!isCore('butts'))
Clone the repo, pnpm install
, and run pnpm test
MIT License © 2014 Dave Justice