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