Making Compressed Javascript Readable

Have you been in a situation where you wanted to know what's the process flow in a javascript but not able to do it because it was compressed? There are several reasons why the Javascript author packed the distributable edition of his work, first: to prevent others from stealing the code, second: to execute is faster, third: create a smaller size file, etc.

A simple script to unpack compressed Javascripts is found at github. You could either use the online version or download it. all you need to execute the script is your browser.

This beautifier or unpacker can process your messy or compacted javascript, making it all neatly and consistently formatted and readable.

You can download the latest version of the code in github, and you can download the beautifier for local use (zip, tar.gz) as well.

The script has a simple unpacker for Dean Edward's packer. To unpack javascript, paste (p,a,c,k,e,d) scripts and hopefully the compressed script gets decoded.