Skip to content

ukstv/is-core-module-es

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

is-core-module-es

ESM fork of 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 { isCore } from 'is-core-module-es';
import assert from 'assert';
assert(isCore('fs'));
assert(!isCore('butts'));

Tests

Clone the repo, pnpm install, and run pnpm run test.

About

Is this specifier a node.js core module? ESM fork of is-core-module

Resources

Stars

Watchers

Forks

Packages

No packages published