Skip to content

Is this specifier a node.js core module?

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE-original
Notifications You must be signed in to change notification settings

no-shims/is-core-module

 
 

Repository files navigation

@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

About

Is this specifier a node.js core module?

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE-original

Stars

Watchers

Forks

Languages

  • TypeScript 99.0%
  • JavaScript 1.0%