Skip to content
Javascript implementation of the L-diggity.
Find file
Pull request Compare This branch is 21 commits behind gf3:master.
Latest commit b900fb6 @gf3 gf3 Merge pull request #3 from nh2/export-fix
Export fix
Failed to load latest commit information.
lib
test
.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

Something went wrong with that request. Please try again.