fast-levenshtein
npmv3.0.0Efficient implementation of Levenshtein algorithm with locale-specific collator support.
Not recommended for new projects
No — fast-levenshtein should not be adopted for new projects. Last published 2240 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- FMaintenance: grade F, Failing.
Last published 2240 days ago.
- AWeight: grade A, Excellent.
Pulls in 1 transitive package, about 28 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding fast-levenshtein to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Licenses in the dependency tree
Every license you inherit by installing fast-levenshtein, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- No constraint declared
- Module format
- CommonJS only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the fast-levenshtein README.
var levenshtein = require('fast-levenshtein');
var distance = levenshtein.get('back', 'book'); // 2
var distance = levenshtein.get('我愛你', '我叫你'); // 1fast-levenshtein vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| fast-levenshteinthis page | 0 | 3 | MIT | 6 years ago |
| leven | 0 | 2 | MIT | 1 day ago |
| fastest-levenshtein | 0 | 1 | MIT | 1 day ago |
| escape-string-regexp | 316.5M | 8 | MIT | 1 day ago |
| is-glob | 137.4M | 3 | MIT | 1 day ago |
| camelcase | 95.7M | 2 | MIT | 1 day ago |
Dependencies
Declared by fast-levenshtein v3.0.0. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (1)
Dev (11)
Used by
Popular packages that depend on fast-levenshtein.
Relationship graph
Dependencies (left) and dependents (right) of fast-levenshtein.
Frequently installed together
An AST-based pattern checker for JavaScript.
Prettier is an opinionated code formatter
Wrap words to a specified length.
Delightful JavaScript Testing.
type-check allows you to check the types of JavaScript values at runtime with a Haskell like type syntax.
Light ECMAScript (JavaScript) Value Notation - human written, concise, typed, flexible
Measure the difference between two strings using the Levenshtein distance algorithm
🔎 A simple, tiny and lightweight benchmarking library!
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.
node's assert.deepEqual algorithm except for NaN being equal to NaN
Release history
No releases in the last two years, typically about 28 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 3.0.0latest | 6 years ago | 7.4 KB | MIT |
| 2.0.6 | 9 years ago | — | MIT |
| 2.0.5 | 10 years ago | — | MIT |
| 2.0.4 | 10 years ago | — | MIT |
| 2.0.3 | 10 years ago | — | MIT |
| 2.0.2 | 10 years ago | — | MIT |
| 2.0.1 | 10 years ago | — | MIT |
| 2.0.0 | 10 years ago | — | MIT |
| 1.1.4 | 10 years ago | — | MIT |
| 1.1.3 | 10 years ago | — | MIT |
| 1.1.2 | 10 years ago | — | MIT |
| 1.1.0 | 10 years ago | — | MIT |
| 1.0.7 | 11 years ago | — | MIT |
| 1.0.6 | 11 years ago | — | MIT |
| 1.0.5 | 11 years ago | — | MIT |
Overview
fast-levenshtein is an npm package that efficient implementation of Levenshtein algorithm with locale-specific collator support. It has 3 known dependents in the graph. The latest version is 3.0.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need efficient implementation of Levenshtein algorithm with locale-specific collator support 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).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Keywords
Frequently asked questions
Should I use fast-levenshtein?
No — fast-levenshtein should not be adopted for new projects. Last published 2240 days ago.
How do I install fast-levenshtein?
Run `npm install fast-levenshtein` to add fast-levenshtein to your npm project.
How many dependencies does fast-levenshtein have?
fast-levenshtein declares 12 direct dependencies and pulls in 1 packages in total once its runtime tree is resolved totalling about 28 KB on disk.
What license is fast-levenshtein released under?
fast-levenshtein is distributed under the MIT license.
How popular is fast-levenshtein?
npm does not publish download counts. Within PackageGraph's crawl, 3 known packages depend on fast-levenshtein.
Is fast-levenshtein still maintained?
The most recent release of fast-levenshtein (v3.0.0) was published 6 years ago.
Does fast-levenshtein run install scripts?
No. fast-levenshtein does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.