terser

JavaScript
terser --compress --mangle -- input.js

Source

Also in JavaScript: