Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
String distance calculations in Coffeescript & Javascript
JavaScript CoffeeScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
benchmarks
lib
src
README.md License, syntax in README.md
UNLICENSE
package.json

README.md

What's Distance?

Distance is a Coffeescript and Javascript module for calculating distances between strings.

var distance = require "distance";
console.log(distance.sift3("banana", "fanana"));
console.log(distance.levenshtein("banana", "fanana"));

The distance string metrics currently supported are:

To our knowledge, the implementations are the fastest variations available.

Installation

The recommended way is through the excellent npm:

$ npm install distance

Otherwise, you can check it in your repository and then expose it:

$ git clone git://github.com/awnist/distance.git node_modules/distance/

Distance is UNLICENSED.

Something went wrong with that request. Please try again.