Measure the difference between two strings using the Levenshtein distance algorithm
$ npm install leven
import leven from 'leven';
leven('cat', 'cow');
//=> 2
- leven-cli - CLI for this module
Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.