lz-string

LZ-based compression algorithm

lz-string

LZ-based compression algorithm for JavaScript

Install via npm

$ npm install -g lz-string
$ lz-string input.js > output.txt

Home page for this program with examples, documentation and a live demo: http://pieroxy.net/blog/pages/lz-string/index.html