This library allows you to easily remove confusables from a string, into normal english characters.
Try it out: https://confusables.netlify.com/
yarn add confusables
npm install confusables
const { remove } = require('confusables');
import remove from 'confusables'; // with ES modules
remove('Ἢἕļľᦞ ш٥ṟlᑰ! Hello World!'); // => Hello World! Hello World!
remove('Iлtèrnåtïonɑlíƶatïǫԉ'); // => Internationalizationconst { obfuscate } = require('confusables');
import { obfuscate } from 'confusables'; // with ES modules
obfuscate('Hello World!'); // => Ḣé𝑙ŀ𝟶 Ꮤᴑ𝖗łᏧ
obfuscate('Internationalization'); // => ᶦṅᵗᧉ𝘳𝓃ȧťί𝙾ቢค𝞲ἱƶ𝜶ナἰøʼnconst { characters } = require('confusables');
import { characters } from 'confusables'; // with ES modules
console.log(characters);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.