Skip to content
Distance is a coffee-script for calculating distances between strings.
CoffeeScript JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
.gitignore
README.md
index.js
package.json

README.md

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); // => hit
});

LICENSE

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

Something went wrong with that request. Please try again.