Have ideas to improve npm?Join in the discussion! »

    any-ascii

    0.2.0 • Public • Published

    AnyAscii build

    Unicode to ASCII transliteration

    Web Demo

    Converts Unicode text to a reasonable representation using only ASCII

    For most characters in Unicode, AnyAscii provides an ASCII-only replacement string. Text is converted character-by-character without considering the context. The mappings for each script are based on popular existing romanization schemes. 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 are removed.

    import anyAscii from 'any-ascii';
    
    const s = anyAscii('άνθρωποι');
    // anthropoi

    npm install any-ascii

    FULL README

    Install

    npm i any-ascii

    DownloadsWeekly Downloads

    872

    Version

    0.2.0

    License

    ISC

    Unpacked Size

    449 kB

    Total Files

    6

    Homepage

    anyascii.com

    Last publish

    Collaborators

    • avatar