UglifyJS
JavaScript parser library for NodeJS
...Its parser converts JavaScript into an abstract syntax tree that can be inspected or manipulated programmatically. The code generator can rebuild readable JavaScript or remove unnecessary whitespace to reduce file size. Its mangler shortens variable names while accounting for scope, globals, eval calls, and with statements. Compression routines simplify expressions, combine declarations, transform conditionals, and remove unreachable code. The package also includes a command-line interface and remains primarily a legacy version superseded by the rewritten UglifyJS2 project.