npm package
Homehas-yarn
has-yarn is a utility that checks if a project is using Yarn by looking for a yarn. lock file in the specified directory or its parent directories. It is useful for tools that need to determine whether to use Yarn or npm for installing dependencies.
- lurq health score
- 58/100
- Confidence
- proven
- Weekly downloads
- 6,154,189
- Latest version
- 4.0.0
- Last release
- Sep 14, 2025
- License
- MIT
Should you depend on has-yarn?
lurq's verdict: low
- No known advisories
Check this from your coding agent
This page is a daily snapshot. lurq's verify tool checks has-yarn at the exact version your agent is about to install, and compat checks it against the rest of your stack. One command connects Claude Code, Cursor, VS Code and other agents:
npx lurqrun
Free to start. Quickstart
Upgrading has-yarn
What each major version removed, renamed or re-signatured, from lurq's extraction of the published packages.
- 3.0.0 → 4.0.0diff ready
- 2.1.0 → 3.0.0diff ready
- 1.0.0 → 2.1.0diff ready
Scored from public signals (npm registry, GitHub, deps.dev and advisory databases). Data as of Sep 17, 2026; this page refreshes every 168 hours. Source repository.