# which-pm-runs

> Detects what package manager executes the process

Latest version **2.0.0** (published 2026-03-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install which-pm-runs
pnpm add which-pm-runs
yarn add which-pm-runs
bun add which-pm-runs
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2026-03-11 |
| First published | 2017-04-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/which-pm-runs) |
| Module format | ESM + CommonJS |
| Node | >=22.13 |
| Dependencies | 0 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 104 |
| Author | Zoltan Kochan |
| Maintainers | zkochan |
| Keywords | npm, pnpm, yarn, cnpm |

## Links

- npm: https://www.npmjs.com/package/which-pm-runs
- Repository: https://github.com/zkochan/packages/tree/main/which-pm-runs
- Homepage: https://github.com/zkochan/packages/tree/main/which-pm-runs#readme
- Issues: https://github.com/zkochan/packages/labels/package%3A%20which-pm-runs
- npm.io page: https://npm.io/package/which-pm-runs

## Recent versions

- 2.0.0 (latest) — 2026-03-11
- 1.1.0 — 2022-02-18
- 1.0.0 — 2017-04-08

## README

# which-pm-runs

> Detects what package manager executes the process

[![npm version](https://img.shields.io/npm/v/which-pm-runs.svg)](https://www.npmjs.com/package/which-pm-runs)

Supports npm, pnpm, Yarn, cnpm, and bun. And also any other package manager that sets the `npm_config_user_agent` env variable.

## Installation

```
pnpm add which-pm-runs
```

## Usage

```js
'use strict'
const whichPMRuns = require('which-pm-runs')

whichPMRuns()
//> {name: "pnpm", version: "0.64.2"}
```

## Related

* [which-pm](https://github.com/zkochan/packages/tree/main/which-pm) - Detects what package manager was used for installation

## License

[MIT](LICENSE) © [Zoltan Kochan](http://kochan.io)

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