Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/sindresorhus/leven

Measure the difference between two strings with the fastest JS implementation of the Levenshtein distance algorithm
https://github.com/sindresorhus/leven

Last synced: 20 days ago
JSON representation

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

Lists

README

        

# leven

> Measure the difference between two strings using the [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) algorithm

## Install

```
$ npm install leven
```

## Usage

```js
import leven from 'leven';

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

## Related

- [leven-cli](https://github.com/sindresorhus/leven-cli) - CLI for this module

---



Get professional support for this package with a Tidelift subscription




Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.