Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vrana/JsShrink
Remove spaces and comments from JavaScript code (available in PHP and JavaScript)
https://github.com/vrana/JsShrink
Last synced: 27 days ago
JSON representation
Remove spaces and comments from JavaScript code (available in PHP and JavaScript)
- Host: GitHub
- URL: https://github.com/vrana/JsShrink
- Owner: vrana
- Created: 2012-03-09T21:45:23.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2023-05-21T07:34:01.000Z (over 1 year ago)
- Last Synced: 2024-11-25T06:40:43.392Z (27 days ago)
- Language: PHP
- Homepage:
- Size: 247 KB
- Stars: 37
- Watchers: 8
- Forks: 8
- Open Issues: 5
-
Metadata Files:
- Readme: readme.txt
Awesome Lists containing this project
README
JsShrink - Remove spaces and comments from JavaScript code
Available in PHP and JavaScript
Requires statements ending by semicolon, use JSHint or JSLint to verify.http://vrana.github.com/JsShrink/
Usage PHP:
Usage JavaScript:
textarea.value = jsShrink(code);
Note:
Google Closure Compiler is much more powerful and efficient tool.
JsShrink was created for those looking for PHP or JavaScript only solution.
Most other JS minifiers are not able to process valid JavaScript code:
http://php.vrana.cz/minifikace-javascriptu.php#srovnani