This site has been acquired by Toptal.com.

JavaScript Minifier

Online JavaScript Minifier/Compressor. Provides an API. Simple and Fast.

Wget

# minifying some JavaScript
wget --post-data='input=console.log( 1 );' --output-document=- https://www.toptal.com/developers/javascript-minifier/raw

# minifying a JS file (e.g. ready.js -> ready.min.js)
wget --post-data="input=`cat ready.js`" --output-document=ready.min.js https://www.toptal.com/developers/javascript-minifier/raw

Click on the language of your choice to see an example: