luutruong / docker-uglifyjs

An wrapper web service for uglify JS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker Uglify Web Service

Build with docker

docker build -t docker-uglify .

docker run --rm --name docker-uglify -p 3000:3000 docker-uglify

API

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'

About

An wrapper web service for uglify JS


Languages

Language:TypeScript 77.2%Language:JavaScript 14.2%Language:Dockerfile 8.6%