Skip to content
This repository has been archived by the owner on Jun 17, 2019. It is now read-only.

Latest commit

 

History

History
26 lines (15 loc) · 488 Bytes

README.md

File metadata and controls

26 lines (15 loc) · 488 Bytes

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.