0.1.0 • Published 4 years ago
striffer v0.1.0
Strings Defferer
The package provides functions to find difference between pair or list of strings.
Installation
Using npm:
npm i --save striffer
In a browser:
<script src="dist/striffer.min.js"></script>
In Node.js:
const striffer = require('striffer');
Documentation
Returns differences between two strings:
Array\<object> function byPair(string str1, string str2, object options = null)
Returns differences between several strings in a list:
Array\<object> function byList(Array\<string> strs, object options = null)
The return item object contains:
string
value - an original stringArray<number>
diff - the list with indices which frame the differences
Options
number
greedyFactor, By default: 3boolean
caseInsensitive, By default: falseboolean
detailed (byList only), By default: false
0.1.0
4 years ago
0.1.0-alpha
4 years ago