levenshtein-distance

Distance is a Coffeescript for calculating distances between strings.

npm install levenshtein-distance
5 downloads in the last week
20 downloads in the last month

nodejs-levenshtein-distance

Installation

$ npm install levenshtein-distance

What's levenshtein-distance

The Levenshtein distance is a string metric for measuring the difference between two sequences.

Usage for JS

var ld = require("levenshtein-distance");

var leven = new ld(['hit','lead','left']);

leven.find('hid',function(result){
  console.log(result);
});

LICENSE

nodejs-levenshtein-distance is licensed under the BSD license.

npm loves you