@magic-libraries/levenshtein
levenshtein string distance calculation for @magic
installation
npm install --save-exact @magic-libraries/levenshtein
usage
in a page/component, just use the lib.levenshtein function.
import { levenshtein } from '@magic-libraries/levenshtein'
levenshtein('a', 'a')
// 0
levenshtein('a', 'b')
// 1
changelog
0.0.1
first release
0.0.2
update dependencies