This package has been deprecated

Author message:

damlev is no longer the fastest implementation, and has bugs. Try the 'damerau-levenshtein' module instead.

damlev
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

damlev Build Status

This is the fastest implementation of Damerau-Levenshtein for JavaScript, an optimization of David Hamp-Gonsalves' port.

Usage

var damlev = require('damlev');
 
damlev('javascript', 'yavascritp'); // => 2

Benchmarks

 $ npm run bench

          19,542 op/s » WatchBeam/damlev
           3,749 op/s » lzrski/damerau-levenshtein
           5,731 op/s » StefanHamminga/damerau-levenshtein-git
           2,686 op/s » davidhampgonsalves

  Suites:  1
  Benches: 4
  Elapsed: 55,147.08 ms

Package Sidebar

Install

npm i damlev

Weekly Downloads

58

Version

1.0.0

License

MIT

Last publish

Collaborators

  • connor.peet