websharks / js-minifier
Compresses JavaScript code.
Installs: 23 355
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 0
Open Issues: 0
Language:JavaScript
Requires
- php: >=5.3
- ext-mbstring: *
This package is not auto-updated.
Last update: 2024-12-10 06:02:28 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);