werkint/jsmin
This package is abandoned and no longer maintained.
No replacement package was suggested.
Library for minifying JavaScript files
Maintainers
1.0.0
2013-11-10 11:34 UTC
Requires
- php: >=5.4
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT 49186aef5401c27f9a504a785032194f77d6dabd
- Douglas Crockford
- Bogdan Yurov <bogdan.woop@yurov.me>
- Steve Clay <steve.woop@mrclay.org>
- Ryan Grove <ryan.woop@wonko.com>
- Andrea Giammarchi
This package is not auto-updated.
Last update: 2022-02-01 12:25:52 UTC
README
JSMin.php - modified PHP implementation of Douglas Crockford's JSMin.
$minifiedJs = \JSMin\Minify::minify($js);
This is a modified port of jsmin.c. Improvements:
Does not choke on some regexp literals containing quote characters. E.g. /'/
Spaces are preserved after some add/sub operators, so they are not mistakenly converted to post-inc/dec. E.g. a + ++b -> a+ ++b
Preserves multi-line comments that begin with /*!
