docker build -t docker-uglify .
docker run --rm --name docker-uglify -p 3000:3000 docker-uglify
Minify:
curl -X POST -H 'content-type: text/plain' --data-raw '<JS content here>' 'http://localhost:3000/minify'
Prettier:
curl -X POST -H 'content-type: application/json' --data-raw '{"options":[],"contents":"function foo() { }"}' 'http://localhost:3000/prettier'