Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Closure decompiler?

I was looking for a way to decompile JavaScript that was compiled by Google Closure. I did find a Decompiler class (https://code.google.com/p/closure-compiler/source/browse/lib/rhino/src/org/mozilla/javascript/Decompiler.java?name=v20140407), however I haven't had much luck with it.

Anyone try this before or know of some other method?

like image 691
codecraig Avatar asked May 26 '26 10:05

codecraig


1 Answers

Usually, I just run the code through the Closure Compiler in WHITESPACE mode and enable the pretty printing options.

like image 102
John Avatar answered May 30 '26 09:05

John



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!