Javascript implementation of the L-diggity.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 24 commits behind gf3:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
README.md
package.json

README.md

Levenshtein

Levenshtein string difference in Javascript.

Screenshot

Levenshtein also does some neat things like coerce to a number and string approproately. So you can compare Levenshtein objects directly! Not to mention it has specs!

API

  • new Levenshtein( m, n )Levenshtein

    • m ( String ): First string.
    • n ( String ): Second string.
    • Initialise a new Levenshtein object.
  • Levenshtein#distanceNumber

    • Distance between strings.
  • Levenshtein#inspect()String

    • Pretty print Levenshtein table.
  • Levenshtein#toString()String

    • Alias of: Levenshtein#inspect.

Installation

With npm:

npm install levenshtein

With git:

git clone git://github.com/gf3/Levenshtein.git

License

Levenshtein is UNLICENSED.

Author

Written by Gianni Chiappettagf3.ca