ld

Compute the Levenshtein distance for string comparison

npm install ld
1 downloads in the last day
1 downloads in the last week
7 downloads in the last month

ld for Node.js by @tonylukasavage

ld is a Node.js package for computing the Levenshtein distance between 2 strings.

Video Demonstration

Coming soon...

Installation

npm install ld

Basic Usage

You can run the extremely simple test case by executing node test/test.js STR1 STR2 or use the code below to do the same.

var ld = require('ld');
console.log(ld.computeDistance(process.argv[2], process.argv[3]));
npm loves you