string-normalizer
v1.0.1
Published
A consistent way to normalize strings across projects
Downloads
12
Readme
StringNormalizer
A simple library to consistently normalize a string so it can be used as a key in a data store.
Installation
npm install --save string-normalizer
Usage
const stringNormalizer = require('string-normalizer');
const inputString = 'Example string ';
const normalizedString = stringNormalizer.normalizeString(inputString);
console.log(normalizedString);
> 'example-string'
Testing
npm test
License
MIT
See LICENSE to see the full text.