normalize-diacritics-es
v1.0.8
Published
es6 compatible version of normalize-diacritics
Downloads
25
Readme
Adaptation of normalize-diacritics for es6 usage.
Install
$ npm install --save normalize-diacritics-es
Usage
Brief example to show how to use:
const { normalize, normalizeKeepCase } = require('normalize-diacritics-es').normalize;
//import { normalize, normalizeKeepCase } from 'normalize-diacritics-es'
/* To normalize string */
const str = 'Söme sTüff wiTh áccènts';
normalize(str); // some stuff with accents
normalizeKeepCase(str); // Some sTuff wiTh accents