Skip to content
JS
Package

compare-func

Get a compare function for array to sort

v2.0.0, 15 May 2020MIT-Types: None
$ npm install compare-func

Key numbers

As of 25 Sept 2026
Weekly downloads
9.3m
+37% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
6 years ago
v2.0.0
GitHub stars
16
4 forks
Open issues / PRs
0 / 2
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
05m10m15mSept 2025Mar 2026Sept 2026High 13.5m (21 Jul 2026)Low 4.1m (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.

9,251,062 downloads last week, 46,611,720 in the last month. The 12-month change of +37% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
012 in total
Latest version
2.0.0, 15 May 20206 years ago
First published
3 Apr 2015
Last push to GitHub
3 Dec 2024661 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
2
Commits, last 52 weeks
0
Dependents on npm
622

Major versions

  1. v2 first release 2.0.0, 15 May 2020
  2. v1 first release 1.0.0, 3 Apr 2015
  3. v0 first release 0.0.0, 3 Apr 2015

Recent releases

VersionPublished
2.0.015 May 2020
1.3.415 May 2020
1.3.315 May 2020
1.3.230 Jun 2016
1.3.114 Jun 2015
1.3.013 Jun 2015
1.2.04 May 2015
1.1.02 May 2015
1.0.23 Apr 2015
1.0.13 Apr 2015
1.0.03 Apr 2015
0.0.03 Apr 2015
Module format
-Not determined from package.json
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
4.7 kB
Dependencies (2)
dot-proparray-ify
npm install compare-func
  • jsDelivrhttps://cdn.jsdelivr.net/npm/compare-func@2.0.0/
  • unpkghttps://unpkg.com/compare-func@2.0.0/
  • esm.shhttps://esm.sh/compare-func@2.0.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

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