A Levenshtein algorithm implementation written in ES6.
npm install levenshtein6
const Levenshtein = require('levenshtein6');
const l = new Levenshtein('kit', 'cat');
l.get(); // 2
l.get('same', 'same'); // 0
or use static method
const Levenshtein = require('levenshtein6');
Levenshtein.get('我愛你', '我愛我恨你'); // 2
npm run test
MIT