any-ascii
TypeScript icon, indicating that this package has built-in type declarations

0.3.2 • Public • Published

AnyAscii

Unicode to ASCII transliteration

Web Demo

Converts Unicode characters to their best ASCII representation

AnyAscii provides ASCII-only replacement strings for practically all Unicode characters. Text is converted character-by-character without considering the context. The mappings for each script are based on popular existing romanization systems. Symbolic characters are converted based on their meaning or appearance. All ASCII characters in the input are left unchanged, every other character is replaced with printable ASCII characters. Unknown characters and some known characters are replaced with an empty string and removed.

import anyAscii from 'any-ascii';

const s = anyAscii('άνθρωποι');
// anthropoi

npm install any-ascii

FULL README

Package Sidebar

Install

npm i any-ascii

Homepage

anyascii.com

Weekly Downloads

1,493

Version

0.3.2

License

ISC

Unpacked Size

459 kB

Total Files

7

Last publish

Collaborators

  • hunterwb