JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 97
  • Score
    100M100P100Q80312F
  • License ISC

remove diacritics from strings

Package Exports

  • atonic

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (atonic) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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-ЧчГгЫыГгХхХхЕ