JavaScript::Minifier

JavaScript::Minifier is a Perl translation of jsmin.c.
Download

JavaScript::Minifier Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Douglas Crockford
  • Publisher web site:
  • http://search.cpan.org/~pmichaux/JavaScript-Minifier-1.05/lib/JavaScript/Minifier.pm

JavaScript::Minifier Tags


JavaScript::Minifier Description

JavaScript::Minifier is a Perl translation of jsmin.c. JavaScript::Minifier is a Perl translation of jsmin.c.SYNOPSIS use JavaScript::Minifier; my $obj = new JavaScript::Minifier; $obj->minify(*STDIN, *STDOUT); use JavaScript::Minifier qw(jsmin); jsmin(*STDIN, *STDOUT);This work is a translation from C to Perl of jsmin.c published by Douglas Crockford. Permission is hereby granted to use the Perl version under the same conditions as the jsmin.c on which it is based.Refer to the JSMin website for further information: http://javascript.crockford.com/jsmin.htmlSpeed is a bit slower than the python version and the python and perl versions are quite a bit slower than the c version(of course).Here are test results processing a 71K javascript file. This is one of the largest we have -- most are considerably smaller. | wall clock seconds(approximate) --------------------------------------- Perl: | 1.4 Python: | 1.0 C: | 0.03 Tests performed on a Intel(R) Pentium(R) 4 CPU 1.80GHz under no load. Requirements: · Perl


JavaScript::Minifier Related Software