UglifyJS
lastmod 2026-11-10created 2018-08-282 edits
UglifyJS is a tool that parses JavaScript code to compress (minify) and obfuscate it. It performs optimizations such as removing whitespace and comments, shortening variable names, dead code elimination, and constant folding, and it can also be used the other way around as a beautifier that tidies up minified code for readability. It is installed as an npm package and used through the CLI or the Node.js API. It was once the default minifier of bundlers such as Webpack, and Terser has become the alternative for ES6+ syntax.
UglifyJS is a JavaScript parser, minifier, compressor and beautifier toolkit.