Skip to content
JS
Package

natural-compare

Compare strings containing a mix of letters and numbers in the way a human being would in sort order.

v1.4.0, 22 Jul 2016MITCommonJSTypes: None
$ npm install natural-compare

Key numbers

As of 25 Sept 2026
Weekly downloads
109.6m
+124% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
10 years ago
v1.4.0
GitHub stars
113
7 forks
Open issues / PRs
0 / 0
Contributors
4
Commits, last 52 weeks
3

Downloads

Last week 2026-09-15 to 2026-09-21
050m100m150mSept 2025Mar 2026Sept 2026High 144.7m (18 Aug 2026)Low 32.8m (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.

109,552,694 downloads last week, 522,545,909 in the last month. The 12-month change of +124% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
02 in total
Latest version
1.4.0, 22 Jul 201610 years ago
First published
18 Nov 2014
Last push to GitHub
2 Sept 202622 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
3
Dependents on npm
1,671

Major versions

  1. v1 first release 1.2.2, 18 Nov 2014

Recent releases

VersionPublished
1.4.022 Jul 2016
1.2.218 Nov 2014
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
-
Dependencies (0)
None
npm install natural-compare
  • jsDelivrhttps://cdn.jsdelivr.net/npm/natural-compare@1.4.0/
  • unpkghttps://unpkg.com/natural-compare@1.4.0/
  • esm.shhttps://esm.sh/natural-compare@1.4.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

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