Détail du package

tiny-levenshtein

fabiospampinato91.1kMIT1.0.1

A tiny implementation of the Levenshtein edit distance algorithm.

tiny, levenshtein, edit, distance

readme

Tiny Levenshtein

A tiny implementation of the Levenshtein edit distance algorithm.

Install

npm install tiny-levenshtein

Usage

import levenshtein from 'tiny-levenshtein';

// Let's compute the Levenshtein edit distance between two strings

levenshtein ( 'kitten', 'sitting' ); // => 3

License

MIT © Fabio Spampinato