Minimal version of a JSCrusher to be used for js#k golf contest.
npm install -g jscrush
For now, only one CLI format is supported:
cat source.js | jscrush 1> output.js
You can also use it in Node / Browserify:
var jscrush = require("jscrush");
var crushed = jscrush(someJavascriptCode);
- http://www.iteral.com/jscrush/ by @aivopaas
- jscrush.js extracted from https://github.com/makepanic/grunt-jscrush/blob/master/tasks/lib/jscrush.js