Sign inSign up

keinos/jsqueeze

By keinos

Updated almost 6 years ago

Minifies Javascript. Usage: See the repo.

Image
0

1.6K

keinos/jsqueeze repository overview

Dockerfile of JSqueeze

A docker container that shrinks / compresses / minifies / mangles Javascript code.

docker pull keinos/jsqueeze:latest

Usage

  • Basic syntax

    docker run --rm keinos/jsqueeze [OPTIONS]
    
  • Via STDIN

    $ # Provide Javascript through STDIN with '.' option.
    $ # Note that you need an -i/--interactive option of docker run.
    $ cat ./fat_js_code.js | docker run --rm -i keinos/jsqueeze .
    ...
    
  • Via argument

    $ # Provide Javascript as a arg value
    $ docker run --rm -i keinos/jsqueeze -c="{'some':'fat js code'}"
    ...
    
    $ # Provide Javascript as a arg value via variable.
    $ # Note that the $str_sample variable is given by quotation.
    $ str_sample=$(cat ./fat_js_code.js)
    $ docker run --rm -v $(pwd)/src/index.php:/app/index.php test -c "$str_sample"
    ...
    
  • Help

    $ # View help
    $ docker run --rm keinos/jsqueeze --help
    ...
    
  • Version

    $ # View version info
    $ docker run --rm keinos/jsqueeze --version
    ...
    
  • Run the built-in simple test

    $ docker run --rm keinos/jsqueeze --test
    ;if('this_is'==/an_example/){of_jsueeze()}
    else{var a=b?(c%d):e[f]};
    

Features

License

  • GNU General Public License v2.0 [See LICENSE]

Tag summary

Content type

Image

Digest

Size

6.4 MB

Last updated

almost 6 years ago

docker pull keinos/jsqueeze