JavaScript::Squish

  5,892 downloads
0.07 GPL (GNU General Public License)    
2.1/5 27
JavaScript::Squish module provides methods to compact javascript source down to just what is needed.

description

download

specifications

JavaScript::Squish module provides methods to compact javascript source down to just what is needed.

It can remove all comments, put everything on one line (semi-)safely, and remove extra whitespace, allowing fine grained control of the compactness.

Any one of the various compacting techniques can be applied individually, or with in any group.

It also provides a means by which to extract all text literals or comments in separate arrays in the order they appear.

Since JavaScript eats up bandwidth, this can be very helpful, and you can then be free to properly comment your JavaScript without fear of burning up too much bandwidth.

What's New in This Release:

Bare regular expressions are now properly treated as strings, and their contents are not squished.
Statements not terminated by a semi-colon were handled wrongly when join_all() was called.
READ MORE   
Last updated on March 17th, 2008

0 User reviews so far.

SUBMIT