0.1.1 • Published 9 years ago
string-normalize-es6 v0.1.1
string-normalize-es6 
Normalize string using ES6 String.Prototype.Normalize
Install
$ yarn add string-normalize-es6Usage
const stringNormalize = require('string-normalize-es6');
stringNormalize('Crème Brulée');
//=> 'Creme Brulee'
stringNormalize(123);
//=> nullAPI
stringNormalize(input)
input
Type: string
String you want to normalize to NFD.
Contribute
The module is based on this answer on Stackoverflow. I'm not completely sure the this is the correct implementation and maybe we can also specify the normalization type as argument. PR welcome! :rocket:
Test
$ yarn testLicense
MIT © LasaleFamine