JS Beautifier in a Docker container for cleaning up your HTML, CSS, and JavaScript. This image exposes the CLI version of jsbeautifier.org.
If you have a JavaScript file ugly.min.js that needs beautification:
$ docker run -i asnelling/jsbeautifier < ugly.min.js > pretty.jsWith the -i flag after docker run, your ugly code is read from standard input, which is the file ugly.min.js in the above example.
Or, pass a file name that exists within the running container, like so:
$ docker run -v /path/to/ugly.min.js:/input.js asnelling/jsbeautifier input.js > pretty.jsYour prettified JavaScript is printed to standard output, so pipe away!
Refer to upstream author's GitHub page.
1.7python-jessie,latest, (python/jessie/Dockerfile)1.7python-slim(python/jessie/Dockerfile)1.7python-stretch(python/jessie/Dockerfile)1.7python-alpine(python/jessie/Dockerfile)1.7js-jessie, (js/jessie/Dockerfile)1.7js-slim, (js/jessie/Dockerfile)1.7js-stretch, (js/jessie/Dockerfile)1.7js-alpine, (js/jessie/Dockerfile)
If you'd like to use the