diff --git a/.editorconfig b/.editorconfig index 8311fe1..8f9d77e 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,4 +1,3 @@ -# editorconfig.org root = true [*] @@ -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 diff --git a/.jshintrc b/.jshintrc index 804f8af..9fe1be2 100644 --- a/.jshintrc +++ b/.jshintrc @@ -2,7 +2,6 @@ "node": true, "esnext": true, "bitwise": true, - "camelcase": true, "curly": true, "immed": true, "newcap": true, diff --git a/cli.js b/cli.js index 0040799..feb2946 100755 --- a/cli.js +++ b/cli.js @@ -10,7 +10,7 @@ function help() { ' ' + pkg.description, '', ' Example', - ' leven cat cow', + ' $ leven cat cow', ' 2' ].join('\n')); } diff --git a/package.json b/package.json index 021ab31..92615c4 100644 --- a/package.json +++ b/package.json @@ -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" @@ -37,8 +35,13 @@ "fast", "fuzzy", "similar", + "similarity", "compare", - "comparison" + "comparison", + "edit", + "text", + "match", + "matching" ], "devDependencies": { "ava": "0.0.4", diff --git a/readme.md b/readme.md index 3481921..bbd9726 100644 --- a/readme.md +++ b/readme.md @@ -6,7 +6,7 @@ ## Install -```sh +``` $ npm install --save leven ``` @@ -23,7 +23,7 @@ leven('cat', 'cow'); ## Benchmark -```sh +``` $ npm run bench ``` ``` @@ -40,15 +40,15 @@ $ npm run bench ## CLI -```sh +``` $ npm install --global leven ``` -```sh +``` $ leven --help Example - leven cat cow + $ leven cat cow 2 ```