npm.io
1.1.2 • Published 11 years ago

homoglyph

Licence
MIT
Version
1.1.2
Deps
0
Vulns
0
Weekly
0

homoglyph Build Status

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

Peter Ritchie (@peterritchie) November 16, 2014

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

Keywords