websharks / js-minifier
Compresses JavaScript code.
Package info
github.com/websharks/js-minifier
Language:JavaScript
pkg:composer/websharks/js-minifier
150511
2015-05-11 20:53 UTC
Requires
- php: >=5.3
- ext-mbstring: *
This package is not auto-updated.
Last update: 2026-03-03 11:56:43 UTC
README
JavaScript minifier (i.e., compressor).
Installation Instructions (Two Options)
- As a Composer Dependency
{
"require": {
"websharks/js-minifier": "dev-master"
}
}
- Or, Download the PHAR Binary See: https://github.com/websharks/js-minifier/releases
Usage Example
$js = 'var helloWorld = function() { console.log("Hello World"); };'; $compressed_js = WebSharks\JsMinifier\Core::compress($js);