Skip to content
JS
Package

detect-package-manager

Detect which package manager you're using (yarn or npm)

v3.0.2, 5 May 2024MITESM + CommonJSTypes: Bundled
$ npm install detect-package-manager

Key numbers

As of 25 Sept 2026
Weekly downloads
991.1k
-50% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
2 years ago
v3.0.2
GitHub stars
90
11 forks
Open issues / PRs
8 / 6
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
01m2m3mSept 2025Mar 2026Sept 2026High 2.3m (21 Oct 2025)Low 683k (1 Sept 2026)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

991,113 downloads last week, 4,541,604 in the last month. The 12-month change of -50% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
08 in total
Latest version
3.0.2, 5 May 20242 years ago
First published
11 Aug 2017
Last push to GitHub
19 Aug 2024766 days before the snapshot
Repository archived
No
Open issues
8
Open pull requests
6
Commits, last 52 weeks
0
Dependents on npm
-

Major versions

  1. v3 first release 3.0.0, 4 Sept 2023
  2. v2 first release 2.0.0, 24 Oct 2021
  3. v1 first release 1.0.0, 11 Aug 2017

Recent releases

VersionPublished
3.0.25 May 2024
3.0.14 Sept 2023
3.0.04 Sept 2023
2.0.124 Oct 2021
2.0.024 Oct 2021
1.1.011 Aug 2017
1.0.111 Aug 2017
1.0.011 Aug 2017
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=12
Runtimes
-
Unpacked size (npm)
10 kB
Dependencies (1)
execa
npm install detect-package-manager
  • jsDelivrhttps://cdn.jsdelivr.net/npm/detect-package-manager@3.0.2/
  • unpkghttps://unpkg.com/detect-package-manager@3.0.2/
  • esm.shhttps://esm.sh/detect-package-manager@3.0.2
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.