See http://github.com/antirez/smaz for information on smaz and the algorithm itself.
Live Demo: http://personalcomputer.github.com/smaz.js/
var c = smaz;var u = smaz;
$ npm install smaz
var smaz = require("smaz");var c = smaz.compress("string");var u = smaz.decompress(c);
Small was written by Salvatore Sanfilippo and is released under the BSD license. Check the COPYING file for more information. smaz.js was written by personalcomputer and is a derivative work also under the BSD license.