node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org »

asciipack

AsciiPack

NPM version

Synopsis

var demo = {"compact":true,"binary":0};
var ap = AsciiPack.pack(demo);
console.log(ap); //=> "r2NcompactYMbinary0" 
 
var unpacked = AsciiPack.unpack(ap);
console.log(unpacked); //=> {"compact":true,"binary":0} 

Install

<script src="https://raw.github.com/ksss/AsciiPack/master/js/asciipack.js"></script>
npm install asciipack

see also https://github.com/ksss/AsciiPack/blob/master/README.md