JavaScript Minifier Curl Example

Check the example on how to use
Curl
to minify a JavaScript hardcoded string and output to stdout:
curl -X POST -s --data-urlencode 'input=console.log(  1  )' https://www.toptal.com/developers/javascript-minifier/api/raw

Output:

console.log(1)