Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tool to reverse Javascript minify? [duplicate]

Are there any command line scripts and/or online tools that can reverse the effects of minification similar to how Tidy can clean up horrific HTML?

(I'm specifically looking to unminify a minified JavaScript file, so variable renaming might still be an issue.)

like image 658
Andy Ford Avatar asked May 04 '09 21:05

Andy Ford


1 Answers

You can use this : http://jsbeautifier.org/ But it depends on the minify method you are using, this one only formats the code, it doesn't change variable names, nor uncompress base62 encoding.

edit: in fact it can unpack "packed" scripts (packed with Dean Edward's packer : http://dean.edwards.name/packer/)

like image 77
Fabien Ménager Avatar answered Oct 07 '22 19:10

Fabien Ménager