From Free Software Directory
Jump to: navigation, search


JavaScript parser, mangler/compressor and beautifier toolkit

UglifyJS is a JavaScript compressor/minifier written in JavaScript. It also contains tools that allow one to automate working with JavaScript code:

  • A parser which produces an abstract syntax tree (AST) from

JavaScript code. * A code generator which outputs JavaScript code from an AST, also providing the option to get a source map. * A compressor (optimizer) - it uses the transformer API to optimize an AST into a smaller one. * A mangler - reduce names of local variables to (usually) single-letters. * A scope analyzer, which is a tool that augments the AST with information about where variables are defined/referenced etc. * A tree walker - a simple API allowing you to do something on every node in the AST. * A tree transformer - another API intended to transform the tree.

All the above utilities and APIs are defined in ~6500 lines of code (except for the effective generation of the source-map, which is handled by the source-map module). Compared to alternatives, UglifyJS is pretty small.



Verified by

Verified on


Verified by

Debian: Jonas Smedegaard <>

Verified on

16 October 2014


License: bsd-2-clause

Leaders and contributors

Contact(s)Role contact

Resources and communication

AudienceResource typeURI
Debian (Ref) (R)
Download git://

Software prerequisites


"contact" is not in the list (Maintainer, Contributor, Developer, Sponsor, Unknown) of allowed values for the "Role" property.

"Debian (Ref) (R)" is not in the list (General, Help, Bug Tracking, Support, Developer) of allowed values for the "Resource audience" property.

Date 2015-07-17
Source Debian
Source link


Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the page “GNU Free Documentation License”.

The copyright and license notices on this page only apply to the text on this page. Any software or copyright-licenses or other similar notices described in this text has its own copyright notice and license, which can usually be found in the distribution or license text itself.