# string-dist

> Distance between two strings using the levenshtein algorithm

Latest version **1.0.1** (published 2020-02-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install string-dist
pnpm add string-dist
yarn add string-dist
bun add string-dist
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-02-12 |
| First published | 2020-01-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.0.0 |
| Dependencies | 0 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Daniel Moxon |
| Maintainers | dancmox |
| Keywords | levenshtein, string, distance |

## Links

- npm: https://www.npmjs.com/package/string-dist
- Repository: https://github.com/dcmox/levenshtein
- Homepage: https://github.com/dcmox/levenshtein#readme
- Issues: https://github.com/dcmox/levenshtein/issues
- npm.io page: https://npm.io/package/string-dist

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2020-02-12
- 1.0.0 — 2020-01-12

## README

# levenshtein
Distance between two strings. Useful for spelling corrections and suggestions.

## Example
```typescript
console.log(levenshtein('test', 'testing')) // outputs 3
console.log(levenshtein('cat', 'kitten')) // outputs 5
```

---
_Source: https://npm.io/package/string-dist · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
