" ".score(" "); //=>
Or play with my fuzziness:
" ".score(" ", ); //=>
Fuzzyness should be between 0 and 1. Low fuzziness like 0.01 means a mismatch will drop the score more then a fuzziness of something like 0.9.
Install with node.js from your terminal.
npm install --save string_score
Require string_score from inside of your app.
I recommend using string_score.min.js (520 bytes) because it is small. The full file string_score.js (2868 bytes) includes comments and full variable names but is otherwise the same as the minified version.
The string_score file is hosted on CDNJS.com and can be included with the following in your page:
View Ports on Github
MIT license: http://www.opensource.org/licenses/mit-license.php
If you expect that something is not right with this project, please Submit an Issue.
If your having trouble feel free to email me: Joshaven Potter (firstname.lastname@example.org)
You can use wget to download the current min version (less then a half of a kilobyte)
$ wget https://github.com/joshaven/string_score/raw/master/string_score.min.js
You can use curl to download the current min version (less then a half of a kilobyte)
$ curl -O https://github.com/joshaven/string_score/raw/master/string_score.min.js
If you want to modify the project, you could also clone the whole project with Git by running:
$ git clone git://github.com/joshaven/string_score