Skip to content
JS
Package

compare-versions

Compare semver version strings to find greater, equal or lesser.

v6.1.1, 13 Jul 2024MITESM + CommonJSTypes: Bundled
$ npm install compare-versions

Key numbers

As of 25 Sept 2026
Weekly downloads
13.1m
+98% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
2 years ago
v6.1.1
GitHub stars
638
59 forks
Open issues / PRs
6 / 3
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
05m10m15m20mSept 2025Mar 2026Sept 2026High 18.1m (25 Aug 2026)Low 3.9m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

13,056,036 downloads last week, 58,026,532 in the last month. The 12-month change of +98% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
033 in total
Latest version
6.1.1, 13 Jul 20242 years ago
First published
18 Mar 2015
Last push to GitHub
15 Jul 2024801 days before the snapshot
Repository archived
No
Open issues
6
Open pull requests
3
Commits, last 52 weeks
0
Dependents on npm
1,686

Major versions

  1. v6 first release 6.0.0, 8 Jul 2023
  2. v5 first release 5.0.0, 26 Aug 2022
  3. v4 first release 4.0.0, 31 Oct 2021
  4. v3 first release 3.0.0, 8 Aug 2016
  5. v2 first release 2.0.0, 7 Sept 2015
  6. v1 first release 1.0.0, 18 Mar 2015

Recent releases

VersionPublished
6.1.113 Jul 2024
6.1.08 Aug 2023
6.0.08 Jul 2023
5.0.313 Dec 2022
5.0.213 Dec 2022
5.0.126 Aug 2022
5.0.026 Aug 2022
4.1.424 Aug 2022
4.1.311 Jan 2022
4.1.210 Dec 2021
4.1.112 Nov 2021
4.1.012 Nov 2021
4.0.212 Nov 2021
4.0.12 Nov 2021
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
54 kB
Dependencies (0)
None
npm install compare-versions

CDN

jsDelivr: 1.6m requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/compare-versions@6.1.1/
  • unpkghttps://unpkg.com/compare-versions@6.1.1/
  • esm.shhttps://esm.sh/compare-versions@6.1.1
Sources: npm registry, npm downloads API, GitHub API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.