Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 803 Bytes

README.md

File metadata and controls

25 lines (15 loc) · 803 Bytes

@no-shims/is-core-module npm

Unit Test

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

License

MIT License © 2024 no-shims

MIT License © 2014 Dave Justice