1.1.2 • Published 9 years ago
homoglyph v1.1.2
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