Skip to content

About

Is this specifier a node.js core module?

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

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

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages