websharks/js-minifier

Compresses JavaScript code.

Installs: 22 444

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 0

Open Issues: 0

Language:JavaScript

150511 2015-05-11 20:53 UTC

This package is not auto-updated.

Last update: 2024-04-30 02:47:20 UTC


README

JavaScript minifier (i.e., compressor).

Installation Instructions (Two Options)

  1. As a Composer Dependency
{
    "require": {
        "websharks/js-minifier": "dev-master"
    }
}
  1. 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);