Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jmperez/js-crusher
- Owner: JMPerez
- License: mit
- Created: 2015-03-13T14:57:44.000Z (over 9 years ago)
- Default Branch: gh-pages
- Last Pushed: 2015-03-14T09:37:33.000Z (over 9 years ago)
- Last Synced: 2024-05-02T06:02:56.188Z (7 months ago)
- Language: JavaScript
- Homepage: https://jmperezperez.com/js-crusher
- Size: 176 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.