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).
$ npm install --save blah-code
or even:
$ bower install --save blah-code
var blahCode = require('blah-code');
blahCode.encode('Hi there! What’s up?'); // -> blah blah blah blah blah […]
blahCode.decode('blah blah blah blah blah blah blah blah blah, blah blah blah blah blah blah blah blah blah blah, blah, blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah, blah blah blah blah blah blah blah blah blah, blah blah blah blah blah blah, blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah, blah blah blah blah blah blah, blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah, blah, blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah, blah blah blah blah blah blah blah blah blah, blah blah, blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah, blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah, blah, blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah, blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah, blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah'); // -> hi there! whats up?
<script src="blah-code.min.js"></script>
<script src="myFile.js"></script>
// myFile.js
blahCode.encode('Hi there! What’s up?'); // -> blah blah blah blah blah […]
Accepts a string
and returns a string
:
Returns the blah code representation of the given text.
Returns regular text of the given blah code.
See CONTRIBUTING.md
- blah-code-cli - CLI for this module
MIT © Michael Kühnel