For Programmers: Free Programming Magazines  


Home > Archive > Modules > September 2005 > Module submission JavaScript::Squish









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Module submission JavaScript::Squish
Perl Authors Upload Server

2005-09-29, 9:58 pm


The following module was proposed for inclusion in the Module List:

modid: java script::Squish
DSLIP: RdpOp
description: Ccmpact JavaScript code to minimal length
userid: UNRTST (Joshua I. Miller)
chapterid: 9 (Language_Interfaces)
communities:
modules@perl.org

similar:
Perl::Squish File::Comments

rationale:

Ccmpact JavaScript code to minimal length

java script::Squish 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.
It breaks the process down into individual steps, and one can pick
and choose what parts to complete to get a custom amount of
compactness.

Having a way to squish JavaScript allows one to comment the code to
their hearts content, and not worry about burning up bandwidth.

The module name was discussed here:
http://www.xray.mpe.mpg.de/mailing-...9/msg01198.html

A few new features were also added since then: Copyright notices in
comments can now optionally be retained. Comments may be pulled out
into an array of all comments. String literals may be pulled out
into an array.

The second will likely be useful for File::Comments, which
currently lacks proper parsing (not that this method is perfect, but
it's better).

Thank you

enteredby: UNRTST (Joshua I. Miller)
enteredon: Thu Sep 29 21:34:56 2005 GMT

The resulting entry would be:

java script::
::Squish RdpOp Ccmpact JavaScript code to minimal length UNRTST


Thanks for registering,
--
The PAUSE

PS: The following links are only valid for module list maintainers:

Registration form with editing capabilities:
https://pause.perl.org/pause/authen...d_mod_preview=1
Immediate (one click) registration:
https://pause.perl.org/pause/authen..._mod_insertit=1
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com