mirror of
https://github.com/litruv/unhomoglyph.git
synced 2026-07-24 10:46:14 +10:00
ce667c335a20fe7c4913b8a1c15c444c69dc25d5
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%