string-compare-score
v1.0.1
Published
this package lets you compare two strings and give you how much percent they are similar
Downloads
143
Maintainers
Readme
string-compare-score
Most of the packages on npm does not provide this :- we are providing you string comparison score based on any order of string, exclusively here only...
We do the most of work for you and you have to just install the package and start using it.
Start using this package by running the below command
Install
npm install string-compare-score
Import in Javascript
const stringCompareScore = require('string-compare-score');
Examples
stringCompareScore("abv cwx123", "wx123 vcab");
//input above two strings
//output ==> 100
stringCompareScore("abc", "cba");
//input above two strings
//output ==> 100
stringCompareScore("1234gdas", "8795jikh");
//input above two strings
//output ==> 0
stringCompareScore("abcd", "fgab");
//input above two strings
//output ==> 50
For Feature requests and Error reporting:
create an issue on github repository or contact directly to [email protected]