Minifies Javascript. Usage: See the repo.
1.6K
A docker container that shrinks / compresses / minifies / mangles Javascript code.
docker pull keinos/jsqueeze:latest
dockerfile" is the main branch and "master" branch is the "JSqueeze" forked source code.keinos/alpine:latest [See more image info]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]};
Content type
Image
Digest
Size
6.4 MB
Last updated
almost 6 years ago
docker pull keinos/jsqueeze