A simple library to consistently normalize a string so it can be used as a key in a data store.
npm install --save string-normalizerconst stringNormalizer = require('string-normalizer');
const inputString = 'Example string ';
const normalizedString = stringNormalizer.normalizeString(inputString);
console.log(normalizedString);
> 'example-string'npm test MIT
See LICENSE to see the full text.