Function lossyNormalize

  • Normalize a string using Unicode Normalization Form KC (NFKC): compatibility decomposition, followed by canonical composition. NFKC is the preferred form for applications in which disambiguation between characters is critical. In Libauth, all message formats designed for transmission between trust centers are NFKC-normalized to hinder exploits in which lookalike characters are used to deceive counterparties.


    console.log(lossyNormalize('fitπŸš€πŸ‘«πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦')); // 'fitπŸš€πŸ‘«πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦'


    • utf8: string

    Returns string

Generated using TypeDoc