websharks/js-minifier

Compresses JavaScript code.

Installs: 23 362

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 4

Forks: 0

Open Issues: 0

Language:JavaScript

150511 2015-05-11 20:53 UTC

This package is not auto-updated.

Last update: 2024-12-24 06:08:31 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);