blah-code
Encode and decode blah code
Demotime 🐰
As UMD module this runs almost everywhere [AMD (e.g RequireJS), CommonJS (Nodeland, browserify) and with good ol’ globals].
Uses ECMAScript 5.1 intensively. So you need es5-shim in case you want to use in old Browsers (IE < 9).
Install
$ npm install --save blah-code
or even:
$ bower install --save blah-code
Usage
CommonJS example:
var blahCode = ; blahCode; // → blaa bluh. blah bleh bluuh. […] blahCode; // -> hi there! whats up?
Global scope example:
// myFile.js blahCode; // → blaa bluh. blah bleh bluuh. […]
API
Accepts a string
and returns a string
:
blahCode.encode()
Returns the blah code representation of the given text:
blahCode;
There is an optional parameter that you can use to switch from blah-code to ape-code. Just use:
blahCode;
blahCode.decode()
Returns regular text of the given blah code:
blahCode;
There is an optional parameter that you can use to switch from blah-code to ape-code. Just use:
blahCode;
Contributing
See CONTRIBUTING.md
Related
- blah-code-cli - CLI for this module
License
MIT © Michael Kühnel