...or, more specifically, all of the code powering jsbeautifier.org.
To beautify from the command-line you can use provided
script/library. Run it to see its usage information; e.g
./jsbeautifier.py file.js beautifies a file, output goes to
jsbeautifier.py as a library is simple:
...or, to specify some options:
Note that only the HTML+JS version supports unpacking various packers.
You are free to use this in any way you want, in case you find this useful or working for you.
Written by Einar Lielmanis, firstname.lastname@example.org
Thanks to Jason Diamond, Patrick Hof, Nochum Sossonko, Andreas Schneider, Dave Vasilevsky, Vital Batmanov, Ron Baldwin, Gabriel Harrison, Chris J. Hull, Mathias Bynens and others.