levdist
A minimal algorithm for computing Levenshtein distance in JavaScript.
Installation
$ npm i levdist
Example
var LevDist = require("levdist");
console.log(LevDist("live", "life"));
Documentation
LevDist(s, t)
Calculates the Levenshtein distance.
Params
- String
s
: The first string. - String
t
: The second string.
Return
- Number The Levenshtein distance value.
How to contribute
Have an idea? Found a bug? See how to contribute.
Where is this library used?
If you are using this library in one of your projects, add it in this list. :sparkles:
License
KINDLY © Ionică Bizău