</>PackageGraphPackageGraph

natural-compare

npmv1.4.0

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

0
Weekly downloads
1
Dependents
2
Dependencies
2/100
Popularity

Overview

natural-compare is an npm package that compare strings containing a mix of letters and numbers in the way a human being would in sort order. The latest version is 1.4.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need compare strings containing a mix of letters and numbers in the way a human being would in sort order and value a focused solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Clear open-source license (MIT).
  • Lean dependency tree (2 direct dependencies).

Cons

  • No bundled TypeScript types (may require a separate @types package).

Auto-generated from collected registry metadata. No external claims are inferred.

Relationship graph

Dependencies (left) and dependents (right) of natural-compare.

eslint@vitest/snapshotnatural-compare
natural-compare dependencies dependents

Dependencies

Dev (2)

buildman *testman *

Used by

Popular packages that depend on natural-compare.

Alternatives to natural-compare

magic-stringnpm

Modify strings, generate sourcemaps

153.8M/wk1 dependentsMITTS
pg-connection-stringnpm

Functions for dealing with a PostgreSQL connection string

40.2M/wk1 dependentsMITTS
locate-characternpm

Get the line and column number of a specific character in a string

4.1M/wk1 dependentsMITTS
escape-string-regexpnpm

Escape RegExp special characters

0/wk2 dependentsMIT
is-globnpm

Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet

0/wk2 dependentsMIT
deep-equalnpm

node's assert.deepEqual algorithm

0/wk5 dependentsMIT
prelude-lsnpm

prelude.ls is a functionally oriented utility library. It is powerful and flexible. Almost all of its functions are curried. It is written in, and is the recommended base library for, LiveScript.

0/wk1 dependentsMIT
deep-isnpm

node's assert.deepEqual algorithm except for NaN being equal to NaN

0/wk1 dependentsMIT
fast-levenshteinnpm

Efficient implementation of Levenshtein algorithm with locale-specific collator support.

0/wk1 dependentsMIT
json-stable-stringify-without-jsonifynpm

deterministic JSON.stringify() with custom sorting to get deterministic hashes from stringified results, with no public domain dependencies

0/wk1 dependentsMIT
is-extglobnpm

Returns true if a string has an extglob.

0/wk1 dependentsMIT

Frequently installed together

Version history

VersionPublishedLicense
1.4.0latest10 years agoMIT
1.2.211 years agoMIT

Maintainers

Keywords

Frequently asked questions

How do I install natural-compare?

Run `npm install natural-compare` to add natural-compare to your npm project.

What license is natural-compare released under?

natural-compare is distributed under the MIT license.

How popular is natural-compare?

natural-compare has approximately 0 downloads per week and 1 known dependent packages.