Skip to content

Commit

Permalink
minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed May 16, 2015
1 parent 41452ef commit ded99a6
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 14 deletions.
3 changes: 1 addition & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# editorconfig.org
root = true

[*]
Expand All @@ -8,7 +7,7 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[package.json]
[{package.json,*.yml}]
indent_style = space
indent_size = 2

Expand Down
1 change: 0 additions & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"node": true,
"esnext": true,
"bitwise": true,
"camelcase": true,
"curly": true,
"immed": true,
"newcap": true,
Expand Down
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function help() {
' ' + pkg.description,
'',
' Example',
' leven cat cow',
' $ leven cat cow',
' 2'
].join('\n'));
}
Expand Down
13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@
"description": "Measure the difference between two strings using the fastest JS implementation of the Levenshtein distance algorithm",
"license": "MIT",
"repository": "sindresorhus/leven",
"bin": {
"leven": "cli.js"
},
"bin": "cli.js",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
"url": "sindresorhus.com"
},
"engines": {
"node": ">=0.10.0"
Expand All @@ -37,8 +35,13 @@
"fast",
"fuzzy",
"similar",
"similarity",
"compare",
"comparison"
"comparison",
"edit",
"text",
"match",
"matching"
],
"devDependencies": {
"ava": "0.0.4",
Expand Down
10 changes: 5 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

## Install

```sh
```
$ npm install --save leven
```

Expand All @@ -23,7 +23,7 @@ leven('cat', 'cow');

## Benchmark

```sh
```
$ npm run bench
```
```
Expand All @@ -40,15 +40,15 @@ $ npm run bench

## CLI

```sh
```
$ npm install --global leven
```

```sh
```
$ leven --help
Example
leven cat cow
$ leven cat cow
2
```

Expand Down

0 comments on commit ded99a6

Please sign in to comment.