# is-core-module

> Is this specifier a node.js core module?

Latest version **2.16.2** (published 2026-05-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-core-module
pnpm add is-core-module
yarn add is-core-module
bun add is-core-module
```

## Health

**Score 58/100 (C)** — status: active.

Positive: has types package; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.16.2 |
| Published | 2026-05-05 |
| First published | 2014-09-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/is-core-module) |
| Module format | ESM + CommonJS |
| Node | >= 0.4 |
| Dependencies | 1 |
| Unpacked size | 37.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 26 |
| Author | Jordan Harband |
| Maintainers | ljharb |
| Keywords | core, modules, module, npm, node, dependencies |

## Links

- npm: https://www.npmjs.com/package/is-core-module
- Repository: https://github.com/inspect-js/is-core-module
- Issues: https://github.com/inspect-js/is-core-module/issues
- Funding: https://github.com/sponsors/ljharb
- npm.io page: https://npm.io/package/is-core-module

## Dependencies (1)

- [hasown](https://npm.io/package/hasown.md) ^2.0.3

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 2.16.2 (latest) — 2026-05-05
- 2.16.1 — 2024-12-21
- 2.16.0 — 2024-12-13
- 2.15.1 — 2024-08-21
- 2.15.0 — 2024-07-17
- 2.14.0 — 2024-06-20
- 2.13.1 — 2023-10-21
- 2.13.0 — 2023-08-04
- 2.12.1 — 2023-05-16
- 2.12.0 — 2023-04-10
- 2.11.0 — 2022-10-18
- 2.10.0 — 2022-08-04
- 2.9.0 — 2022-04-19
- 2.8.1 — 2022-01-05
- 2.8.0 — 2021-10-14
- … 11 more at https://npm.io/package/is-core-module/versions

## README

# is-core-module <sup>[![Version Badge][2]][1]</sup>

[![github actions][actions-image]][actions-url]
[![coverage][codecov-image]][codecov-url]
[![dependency status][5]][6]
[![dev dependency status][7]][8]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]

[![npm badge][11]][1]

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

## Example

```js
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`

[1]: https://npmjs.org/package/is-core-module
[2]: https://versionbadg.es/inspect-js/is-core-module.svg
[5]: https://david-dm.org/inspect-js/is-core-module.svg
[6]: https://david-dm.org/inspect-js/is-core-module
[7]: https://david-dm.org/inspect-js/is-core-module/dev-status.svg
[8]: https://david-dm.org/inspect-js/is-core-module#info=devDependencies
[11]: https://nodei.co/npm/is-core-module.png?downloads=true&stars=true
[license-image]: https://img.shields.io/npm/l/is-core-module.svg
[license-url]: LICENSE
[downloads-image]: https://img.shields.io/npm/dm/is-core-module.svg
[downloads-url]: https://npm-stat.com/charts.html?package=is-core-module
[codecov-image]: https://codecov.io/gh/inspect-js/is-core-module/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/inspect-js/is-core-module/
[actions-image]: https://img.shields.io/github/check-runs/inspect-js/is-core-module/main
[actions-url]: https://github.com/inspect-js/is-core-module/actions

---
_Source: https://npm.io/package/is-core-module · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
