leven

Measure the difference between two strings with the fastest JS implementation of the Levenshtein distance algorithm

MIT License

Downloads
104.5M
Stars
707
Committers
7

leven

Measure the difference between two strings using the Levenshtein distance algorithm

Install

$ npm install leven

Usage

import leven from 'leven';

leven('cat', 'cow');
//=> 2

Related