npm package
Homecompare-versions
compare-versions is a utility for comparing semantic versioning (semver) strings to determine their order. It is useful for applications that need to manage version dependencies or sort version numbers. The package supports various semver formats and provides functions for comparison, validation, and range satisfaction.
- lurq health score
- 48/100
- Confidence
- unproven
- Weekly downloads
- 12,099,575
- Latest version
- 6.1.1
- Last release
- Jul 13, 2024
- License
- MIT
Should you depend on compare-versions?
lurq's verdict: low
- No known advisories
Check this from your coding agent
This page is a daily snapshot. lurq's verify tool checks compare-versions 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
Other utility packages lurq scores
- dompurify98/100 · proven
- pdfjs-dist95/100 · proven
- @puppeteer/browsers94/100 · proven
- puppeteer-core94/100 · proven
- puppeteer94/100 · proven
Scored from public signals (npm registry, GitHub, deps.dev and advisory databases). Data as of Sep 9, 2026; this page refreshes every 24 hours. Source repository.