パッケージの詳細

string-dist

dcmox14MIT1.0.1

Distance between two strings using the levenshtein algorithm

levenshtein, string, distance

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