Skip to content

Commit

Permalink
Meta tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jan 2, 2021
1 parent a0a00f6 commit 5a1eef8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 29 deletions.
2 changes: 1 addition & 1 deletion license
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"name": "leven",
"version": "3.1.0",
"description": "Measure the difference between two strings using the fastest JS implementation of the Levenshtein distance algorithm",
"description": "Measure the difference between two strings using the Levenshtein distance algorithm",
"license": "MIT",
"repository": "sindresorhus/leven",
"funding": "https://github.com/sponsors/sindresorhus",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
"url": "https://sindresorhus.com"
},
"engines": {
"node": ">=6"
Expand All @@ -25,7 +26,6 @@
"levenshtein",
"distance",
"algorithm",
"algo",
"string",
"difference",
"diff",
Expand Down
26 changes: 1 addition & 25 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
# leven

> Measure the difference between two strings<br>
> One of the fastest JS implementations of the [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) algorithm
> Measure the difference between two strings using the [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) algorithm
## Install

```
$ npm install leven
```


## Usage

```js
Expand All @@ -20,31 +17,10 @@ leven('cat', 'cow');
//=> 2
```


## Benchmark

```
$ npm run bench
```

```
165,926 op/s » leven
164,398 op/s » talisman
1,044 op/s » levenshtein-edit-distance
628 op/s » fast-levenshtein
497 op/s » levenshtein-component
195 op/s » ld
190 op/s » levenshtein
168 op/s » levdist
10 op/s » natural
```


## Related

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


---

<div align="center">
Expand Down

0 comments on commit 5a1eef8

Please sign in to comment.