detect-package-manager 2.0.0
Detect which package manager you're using (yarn or npm)
detect-package-manager@2.0.0 was published on 2021-10-24. Its manifest declares 1 runtime dependency and 0 peer requirements. Bundled type declarations are not declared in the inspected metadata. The declared Node.js requirement is >=12.
All detect-package-manager versions · Permanent reference to 2.0.0 · Latest release
Package specifications
| Version | 2.0.0 |
|---|---|
| License declaration | MIT |
| Published | 2021-10-24T03:30:49.517Z |
| Node.js requirement | >=12 |
| Type declarations | Not declared |
| Runtime dependency count | 1 |
| Peer requirement count | 0 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 9.48 KiB |
| Published file count | 6 |
| Package type | Not declared |
| ES module entry | dist/index.mjs |
| Default entry | dist/index.js |
| Side effects declaration | Not declared |
| Direct advisories | 0 |
| Resolved graph dependencies | 16 |
| Repository stars | 89 |
| Repository forks | 11 |
Install detect-package-manager 2.0.0
npm install detect-package-manager@2.0.0 pnpm add detect-package-manager@2.0.0 yarn add detect-package-manager@2.0.0
Runtime dependencies
- execa ^5.1.1
Peer requirements
- None declared
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- cross-spawn@7.0.6 — indirect
- execa@5.1.1 — direct
- get-stream@6.0.1 — indirect
- human-signals@2.1.0 — indirect
- is-stream@2.0.1 — indirect
- isexe@2.0.0 — indirect
- merge-stream@2.0.0 — indirect
- mimic-fn@2.1.0 — indirect
- npm-run-path@4.0.1 — indirect
- onetime@5.1.2 — indirect
- path-key@3.1.1 — indirect
- shebang-command@2.0.0 — indirect
- shebang-regex@3.0.0 — indirect
- signal-exit@3.0.7 — indirect
- strip-final-newline@2.0.0 — indirect
- which@2.0.2 — indirect
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
OpenSSF repository checks
Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.
| Code-Review | 1/10 — Found 3/20 approved changesets -- score normalized to 1 |
|---|---|
| Maintained | 0/10 — 0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0 |
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| Dangerous-Workflow | 10/10 — no dangerous workflow patterns detected |
| Token-Permissions | 0/10 — detected GitHub workflow tokens with excessive permissions |
| Pinned-Dependencies | 0/10 — dependency not pinned by hash detected -- score normalized to 0 |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Fuzzing | 0/10 — project is not fuzzed |
| License | 10/10 — license file detected |
| Security-Policy | 0/10 — security policy file not detected |
| Branch-Protection | 0/10 — branch protection not enabled on development/release branches |
| SAST | 0/10 — SAST tool is not run on all commits -- score normalized to 0 |
Evidence and freshness
- https://registry.npmjs.org/detect-package-manager/2.0.0 — retrieved 2026-10-29T21:49:58.649Z
- https://api.deps.dev/v3/projects/github.com%2Fegoist%2Fdetect-package-manager — retrieved 2026-10-29T19:53:46.329Z
- https://api.deps.dev/v3/systems/npm/packages/detect-package-manager/versions/2.0.0 — retrieved 2026-10-29T21:49:59.151Z
- https://api.deps.dev/v3/systems/npm/packages/detect-package-manager/versions/2.0.0:dependencies — retrieved 2026-10-29T21:49:59.187Z