Skip to content

Is this specifier a node.js core module?

License

Notifications You must be signed in to change notification settings

inspect-js/is-core-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Dec 21, 2024
7c42848 · Dec 21, 2024
Nov 1, 2022
Dec 5, 2024
Apr 19, 2022
Oct 18, 2022
Sep 29, 2020
Apr 24, 2021
Dec 21, 2024
Sep 29, 2014
May 5, 2021
Dec 21, 2024
Oct 21, 2023
Dec 21, 2024

Repository files navigation

is-core-module Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Is this specifier a node.js core module? Optionally provide a node version to check; defaults to the current node version.

Example

var isCore = require('is-core-module');
var assert = require('assert');
assert(isCore('fs'));
assert(!isCore('butts'));

Tests

Clone the repo, npm install, and run npm test