Skip to content
JS
Package

preferred-pm

Detects what package manager was used for installation

v5.0.0, 11 Mar 2026MITESM onlyTypes: None
$ npm install preferred-pm

Key numbers

As of 25 Sept 2026
Weekly downloads
1.9m
+20% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
3
Direct, from package.json
Last release
6 months ago
v5.0.0
GitHub stars
104
33 forks
Open issues / PRs
14 / 24
Contributors
-
Commits, last 52 weeks
34

Downloads

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

1,945,680 downloads last week, 9,560,178 in the last month. The 12-month change of +20% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
116 in total
Latest version
5.0.0, 11 Mar 20266 months ago
First published
8 Mar 2018
Last push to GitHub
24 Sept 2026same day as the snapshot
Repository archived
No
Open issues
14
Open pull requests
24
Commits, last 52 weeks
34
Dependents on npm
-

Major versions

  1. v5 first release 5.0.0, 11 Mar 2026
  2. v4 first release 4.0.0, 6 Jul 2024
  3. v3 first release 3.0.0, 17 Apr 2020
  4. v2 first release 2.0.0, 24 May 2019
  5. v1 first release 1.0.0, 8 Mar 2018

Recent releases

VersionPublished
5.0.011 Mar 2026
4.1.13 Feb 2025
4.1.029 Jan 2025
4.0.06 Jul 2024
3.1.44 Jul 2024
3.1.322 Feb 2024
3.1.25 Sept 2023
3.1.131 Aug 2023
3.1.031 Aug 2023
3.0.39 Feb 2021
3.0.214 Aug 2020
3.0.129 Jun 2020
3.0.017 Apr 2020
2.0.024 May 2019
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=22.13
Runtimes
-
Unpacked size (npm)
4.8 kB
Dependencies (3)
which-pmfind-up-simplefind-yarn-workspace-root2
npm install preferred-pm
  • jsDelivrhttps://cdn.jsdelivr.net/npm/preferred-pm@5.0.0/
  • unpkghttps://unpkg.com/preferred-pm@5.0.0/
  • esm.shhttps://esm.sh/preferred-pm@5.0.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

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