source: frontend/node_modules/leven/readme.md

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 976 bytes
Line 
1# leven [![Build Status](https://travis-ci.org/sindresorhus/leven.svg?branch=master)](https://travis-ci.org/sindresorhus/leven)
2
3> Measure the difference between two strings<br>
4> One of the fastest JS implementations of the [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) algorithm
5
6
7## Install
8
9```
10$ npm install leven
11```
12
13
14## Usage
15
16```js
17const leven = require('leven');
18
19leven('cat', 'cow');
20//=> 2
21```
22
23
24## Benchmark
25
26```
27$ npm run bench
28```
29
30```
31 165,926 op/s » leven
32 164,398 op/s » talisman
33 1,044 op/s » levenshtein-edit-distance
34 628 op/s » fast-levenshtein
35 497 op/s » levenshtein-component
36 195 op/s » ld
37 190 op/s » levenshtein
38 168 op/s » levdist
39 10 op/s » natural
40```
41
42
43## Related
44
45- [leven-cli](https://github.com/sindresorhus/leven-cli) - CLI for this module
46
47
48## License
49
50MIT © [Sindre Sorhus](https://sindresorhus.com)
Note: See TracBrowser for help on using the repository browser.