Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

string-normalizer

forgotpw8MIT1.0.1

A consistent way to normalize strings across projects

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.