Skip to content

CAI-js/leven

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@caijs/leven

Build Status Coverage Status NPM version NPM downloads

Measure the difference between two strings

Is a javascript implementation of the Levenshtein distance algorithm

Install

$ npm install @caijs/leven

Usage

const leven = require('@caijs/leven');

leven('cat', 'cow');
//=> 2

Benchmark

$ npm run bench
        279,295 op/s » @caijs/leven
        248,323 op/s » leven
        240,445 op/s » talisman
          1,281 op/s » levenshtein-edit-distance
            776 op/s » fast-levenshtein
            754 op/s » levenshtein-component
            244 op/s » levenshtein
            202 op/s » levdist
            197 op/s » ld
             11 op/s » natural

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published