# Package Manager Detector — card for AI agents

Utility to automatically detect which package manager (npm, yarn, pnpm) is used.

Category: Dev workflow and config · npm package `package-manager-detector` · latest version 1.9.0 (checked 2026-11-03)
Install: `npm install package-manager-detector`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 49.3 (#2063 of all tools, 153 of 299 in its category)
- Used in 3 public projects set up for AI coding agents (0.0%)
- Downloads last week: 72,783,266 (as of 2026-11-24), +66.6% over 4 weeks
- GitHub stars: 174 (as of 2026-11-24)
- Last push: 2026-10-05

## Often used with
Biome 60.0%, TypeScript 100.0%, Vite 60.0%, Vitest 60.0%, Model Context Protocol SDK (JavaScript) 40.0%, chokidar 40.0%

## Links
- AgentGid page: https://agentgid.com/tools/package-manager-detector/
- Homepage: https://github.com/antfu-collective/package-manager-detector#readme
- Repository: https://github.com/antfu-collective/package-manager-detector

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
