string-dist
v1.0.1
Published
Distance between two strings using the levenshtein algorithm
Downloads
14
Readme
levenshtein
Distance between two strings. Useful for spelling corrections and suggestions.
Example
console.log(levenshtein('test', 'testing')) // outputs 3
console.log(levenshtein('cat', 'kitten')) // outputs 5