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.

A Filipino Engineer, Registered Professional Engineer of Queensland (RPEQ) - Australia and Professional Electrical Engineer (PEE) - Philippines with extensive experience in concept select, front-end engineering, HV & LV detail design, construction and commissioning of Hazardous and Non-Hazardous Area electrical installations in water and waste water pipeline and pumping facilities, offshore platforms, hydrocarbon process plants and pipelines including related facilities. Hazardous area classification and design certification (UEENEEM015B, UEENEEM016B, UEENEEM017B).