This library is for using some common methods in all Advice's nodeJS projects
"advice-util": "git+ssh://[email protected]:adviceinteractivegroup/npm-package-util.git"
npm install
This is the normalize method from GP's chibi-sephirot project that is intended to normalize address, name, phones strings for eventually being compared to another normalized string and determine similarity.
This is the verifyNap method from GP's chibi-sephirot project to compare 2 normalized strings and determine their similarity
This method is intended to verify if a string is numeric or not.
string
boolean
This method is intended to verify if a string is a url or not
string
boolean
This method is intended to extract the directory property from the object elements of an array
Array of objects
Array of strings (directory names)
Jose Duran's modification to sorensen-dice algorithm to verify similarity between 2 strings
arr1 String or Array arr2 String or Array
double (sorensen-dice similarity index)