atonic

remove diacritics from strings

  • atonic

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
atonic
1.0.49 years ago9 years agoMinified + gzip package size for atonic in KB

Readme

atonic
Remove diacritics from strings. Works for LATIN and CYRILLIC scripts.

Usage

var atonic = require('atonic');

atonic('ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏ-Iлtèrnåtïonɑlíƶa-ӴӵӶӷӸӹӺӻӼӽӾӿЀ');
// out: AAAAAAAECEEEEIIII-Internationaliza-ЧчГгЫыГгХхХхЕ

// convert only lower case chars:
atonic.lowerCase('ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏ-Iлtèrnåtïonɑlíƶa-ӴӵӶӷӸӹӺӻӼӽӾӿЀ');
// out: ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏ-Internationaliza-ӴчӶгӸыӺгӼхӾхЀ

// convert only LATIN chars:
atonic.latin('ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏ-Iлtèrnåtïonɑlíƶa-ӴӵӶӷӸӹӺӻӼӽӾӿЀ');
// out: AAAAAAAECEEEEIIII-Internationaliza-ӴӵӶӷӸӹӺӻӼӽӾӿЀ

// convert only CYRILLIC chars:
atonic.cyrillic('ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏ-Iлtèrnåtïonɑlíƶa-ӴӵӶӷӸӹӺӻӼӽӾӿЀ');
// out: ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏ-Iлtèrnåtïonɑlíƶa-ЧчГгЫыГгХхХхЕ