03 Aug 2007 19:56:10 UTC
- Module version: 1.04
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (0)
- Testers (63 / 0 / 3)
- KwaliteeBus factor: 1
- License: unknown
- Download (7KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:2 non-PAUSE users
To include a copyright comment at the top of the minified code.
minify(input => 'var x = 2;', copyright => 'BSD License');
minify(input => 'var x = 2;', stripDebug => 1);
The "input" parameter is manditory. The "output", "copyright", and "stripDebug" parameters are optional and can be used in any combination.
The ECMAScript specifications allow for many different whitespace characters: space, horizontal tab, vertical tab, new line, carriage return, form feed, and paragraph separator. This module understands all of these as whitespace except for vertical tab and paragraph separator. These two types of whitespace are not minimized.
None by default.
Exportable on demand: minifiy()
You may also be interested in the CSS::Minifier module also available on CPAN.
Peter Michaux, <firstname.lastname@example.org> Eric Herrera, <email@example.com>
Copyright (C) 2007 by Peter Michaux
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.
Module Install Instructions
For more information on module installation, please visit the detailed CPAN module installation guide.
|s||Focus search bar|
|?||Bring up this help dialog|
|g p||Go to pull requests|
|g i||go to github issues (only if github is preferred repository)|
|g a||Go to author|
|g c||Go to changes|
|g i||Go to issues|
|g d||Go to dist|
|g r||Go to repository/SCM|
|g s||Go to source|
|g b||Go to file browse|