Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Node.js package for computing the Levenshtein difference between 2 strings
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
LICENSE.txt
README.md
package.json

README.md

ld for Node.js by @tonylukasavage

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

Video Demonstration

https://vimeo.com/38825679

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]));
Something went wrong with that request. Please try again.