Javascript beautifier

Sometimes it is necessary to Un-obfuscate javascript code, to be able to understand the logic behind some *.js file. Very often coders obfuscate the JavaScript files, removing tabs, whitespaces and change variables to meaningless letters, thus making it hard to read the code and understand the logic. The example is Google analytics code (ga.js). Most likely they obfuscated the code concerning the file size. However, there is a wonderful http://jsbeautifier.org/ that can be used to add nice paddings and whitespaces for functions, if/else statements, for loops, etc.

Comments

urHelper said…
visit http://codebeautify.org/

it is one of the good online editor+beautifier+minifier+validator for javascript,json,xml,html,css

and online wordcounter,sitemap+robots.txt generator.....etc

Popular posts from this blog

What does http-equiv stands for?

What is the difference between conjecture and hypothesis?