homoglyph
v1.1.2
Published
Replace ascii chars with their same looking utf8 chars.
Downloads
32
Maintainers
Readme
homoglyph
A port of mimic to node.js.
It's inspired by this terrible idea floating around:
MT: Replace a semicolon (;) with a greek question mark (;) in your friend's C# code and watch them pull their hair out over the syntax error
Install
$ npm install --save homoglyph
##Usage
var homoglyph = require('homoglyph');
homoglyph.encode('text', opts);
homoglyph.decode('text');
homoglyph.dict
// A ES6 Map Object with normal characters as keys and an array of similar looking utf8 characters as value.
homoglyph.reverse
// A ES6 Map Object with similar looking characters as keys and their usual letters as values