
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
is-core-module
Advanced tools
Is this specifier a node.js core module? Optionally provide a node version to check; defaults to the current node version.
var isCore = require('is-core-module');
var assert = require('assert');
assert(isCore('fs'));
assert(!isCore('butts'));
Clone the repo, npm install, and run npm test
The builtin-modules package provides a list of the Node.js built-in modules. It is similar to is-core-module in that it helps identify core modules, but instead of checking a module name, it provides the full list of built-in modules for direct use.
The resolve package is a more complex module resolution library that can be used to resolve the path of a module like require.resolve does. It can also be used to check if a module is a core module by resolving its path and checking if it is null, which would indicate a core module. It offers more features than is-core-module but can be used for a similar purpose in some cases.
FAQs
Is this specifier a node.js core module?
The npm package is-core-module receives a total of 115,259,762 weekly downloads. As such, is-core-module popularity was classified as popular.
We found that is-core-module demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.