Codebase list node-leven / lintian-fixes/main readme.md
lintian-fixes/main

Tree @lintian-fixes/main (Download .tar.gz)

readme.md @lintian-fixes/mainraw · history · blame

# 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

---

<div align="center">
	<b>
		<a href="https://tidelift.com/subscription/pkg/npm-leven?utm_source=npm-leven&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
	</b>
	<br>
	<sub>
		Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
	</sub>
</div>