# is-node

> Detect if current process is a node application or not.

Latest version **1.1.1** (published 2025-04-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-node
pnpm add is-node
yarn add is-node
bun add is-node
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; has provenance.

Warnings: low downloads.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2025-04-23 |
| First published | 2013-10-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >= 0.10 |
| Dependencies | 0 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 2 |
| Author | matthewh |
| Maintainers | matthewh |
| Keywords | is, node, detect, process |

## Links

- npm: https://www.npmjs.com/package/is-node
- Repository: https://github.com/MatthewSH/npm-packages
- Issues: https://github.com/MatthewSH/npm-packages/issues
- npm.io page: https://npm.io/package/is-node

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2025-04-23
- 1.1.0 — 2025-04-23
- 1.0.2 — 2016-09-12
- 1.0.1 — 2016-07-15
- 1.0.0 — 2016-04-19
- 0.0.1-security — 2016-03-23
- 2.0.0 — 2016-03-22
- 0.0.0 — 2013-10-07

## README

# `is-node`

Detects if the current process is a node application or not.

## Usage

```javascript
const isNode = require("is-node");

if (isNode) {
  console.log("Hey, I'm a node process!");
}
```

```typescript
import isNode from "is-node";

if (isNode) {
  console.log("Hey, I'm a node process!");
}
```

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