Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jmperez/js-crusher

A Javascript packer that minifies JS code through string replacements
https://github.com/jmperez/js-crusher

Last synced: 29 days ago
JSON representation

A Javascript packer that minifies JS code through string replacements

Awesome Lists containing this project

README

        

# JS Crusher
JS Crusher is a Javascript packer that takes a short JS snippet and minimizes it through string replacements. It is very suitable for competitions such as [JS1K](http://js1k.com).

It is based on [@possan's crusher](https://github.com/possan/jsintros/blob/master/a/src/crush.js), with some improvements taken from [JSCrush](http://www.iteral.com/jscrush/). JS Crusher achieves a good compression rate thanks to extra passes, together with a better approach for choosing candidates for replacements.

Especial kudos to [KodeClutz's post on Demystifying JSCrush](http://blog.nikhilism.com/2012/04/demystifying-jscrush.html) which explains how JSCrush works.