Functions to sanitize strings and addresses
Add this library as a dependencies in your project:
yarn add -D string-sanitizers@https://github.com/ufirstgroup/string-sanitizers.git
This will add a new line in your package.json file:
"string-sanitizers": "https://github.com/ufirstgroup/string-sanitizers.git",
- ignoreLeadingZeros
- ignoreSpaces
- ignoreNonNumericCharacters
- ignoreNonAlphaNumericCharacters
- ignoreAccentuatedCharacters
- ignoreStreetVariations
- sanitizePostalCode
- sanitizeHouseNumber
- sanitizeStreetName