diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-05-28 00:38:50 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-05-28 00:40:43 +0200 |
commit | 7fff4499fd915bcea3fa93b1aa8b35f4fe7a6027 (patch) | |
tree | 6de9a1aebd150a23b7f8c273ec657a5d0a18fe3e /node_modules/leven/readme.md | |
parent | 963b7a41feb29cc4be090a2446bdfe0c1f1bcd81 (diff) |
add linting (and some initial fixes)
Diffstat (limited to 'node_modules/leven/readme.md')
-rw-r--r-- | node_modules/leven/readme.md | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/node_modules/leven/readme.md b/node_modules/leven/readme.md new file mode 100644 index 000000000..9493c9f38 --- /dev/null +++ b/node_modules/leven/readme.md @@ -0,0 +1,50 @@ +# leven [](https://travis-ci.org/sindresorhus/leven) + +> Measure the difference between two strings<br> +> The fastest JS implementation of the [Levenshtein distance](http://en.wikipedia.org/wiki/Levenshtein_distance) algorithm + + +## Install + +``` +$ npm install --save leven +``` + + +## Usage + +```js +const leven = require('leven'); + +leven('cat', 'cow'); +//=> 2 +``` + + +## Benchmark + +``` +$ npm run bench +``` + +``` + 401,487 op/s » leven + 371,707 op/s » talisman + 264,191 op/s » levenshtein-edit-distance + 152,923 op/s » fast-levenshtein + 57,267 op/s » levenshtein-component + 19,915 op/s » levdist + 21,802 op/s » ld + 18,079 op/s » natural + 11,761 op/s » levenshtein +``` + + +## Related + +- [leven-cli](https://github.com/sindresorhus/leven-cli) - CLI for this module + + +## License + +MIT © [Sindre Sorhus](https://sindresorhus.com) |