Nerdy Poly Millionaires

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

    0.1.3 • Public • Published

    npm MIT gzip size

    Confusables

    This library allows you to easily remove confusables from a string.

    Confusables is currently in early development. Anything may change at any time. The public API should not be considered stable until version 1.0.0.

    Installation

    yarn add confusables
    
    npm install confusables
    

    Usage

    const { remove, obfuscate } = require('confusables');
    
    const weirdString = 'Ἢἕļľᦞ ш٥ṟlᑰ! Hello World!';
    
    const normalString = remove(weirdString);
    
    console.log(normalString); // Hello World! Hello World!

    What are confusables?

    Confusable characters are those that may be confused with others (in some common UI fonts), such as the Latin letter "o" and the Greek letter omicron "ο". Fonts make a difference: for example, the Hebrew character "ס" looks confusingly similar to "o" in some fonts (such as Arial Hebrew), but not in others.

    Source

    Keywords

    none

    Install

    npm i confusables@0.1.3

    Version

    0.1.3

    License

    MIT

    Unpacked Size

    45.9 kB

    Total Files

    7

    Last publish

    Collaborators

    • gc