mirror of
https://github.com/litruv/unhomoglyph.git
synced 2026-07-24 02:36:12 +10:00
0bc3804849aba8fa88e6dffb348d7d50e62fb480
unhomoglyph
Replace all homoglyphs with base characters. Useful to detect similar strings.
Data source - Recommended confusable mapping for IDN, v9.0.0.
Install
npm install unhomoglyph --save
Example
const unhomoglyph = require('unhomoglyph');
console.log(unhomoglyph('AΑАᎪᗅᴀꓮ')); // => AAAAAAA
Update
npm run update
License
Languages
JavaScript
100%