Package Manager Detector
Utility to automatically detect which package manager (npm, yarn, pnpm) is used.
2. Maintained
Latest GitHub release Oct 5, 2026.
github.com/antfu-collective/package-manager-detector3. Used by agents' projects
Dependency in 3 public GitHub projects set up for AI coding agents that we scanned (0.0%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error
What Package Manager Detector does
Utility to automatically detect which package manager (npm, yarn, pnpm) is used.
Package Manager Detector popularity
Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated
How Package Manager Detector is used
- Package Manager Detector joined the catalog on its public numbers (72,783,266 downloads a week on npm and 174 GitHub stars), not on our project count: it is a dependency in 5 public GitHub projects of our scan, 3 of them set up for AI coding agents.
- Projects that use it most often also use Biome (60.0%), TypeScript (100.0%), Vite (60.0%).
Often used with
More about Package Manager Detector
Funding
- GitHub Sponsors: https://github.com/antfu
- Open Collective: https://opencollective.com/antfu
- 147 GitHub sponsors
More in Dev workflow and config
Alternatives
Package Manager Detector This page
Get started
Install it.
npm install package-manager-detectorNo step-by-step start for Package Manager Detector yet: we have not written its hand-checked card.