diff --git a/README.md b/README.md index 0422182..1bd6d63 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,17 @@ const unhomoglyph = require('unhomoglyph'); console.log(unhomoglyph('AΑАᎪᗅᴀꓮ')); // => AAAAAAA console.log(unhomoglyph('m')); // => rn (r + n) + +// +// Compare nicknames +// + +const username1 = 'm'; +const username2 = 'rn'; + +if (unhomoglyph(username1) === unhomoglyph(username2)) { + console.log(`"${username1}" and "${username2} look similar`); +} ```