mirror of
https://github.com/litruv/unhomoglyph.git
synced 2026-07-24 02:36:12 +10:00
47a72963b69f447241b7f31975f3a53f39912fbb
unhomoglyph
Replace all homoglyphs with base characters. Useful to detect similar strings.
Data source - Recommended confusable mapping for IDN, v8.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%