JSPM

damlev

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 493
  • Score
    100M100P100Q5288F
  • License MIT

The fastest JS implementation of the Damerau-Levenshtein edit distance

Package Exports

  • damlev

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (damlev) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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