Q:

How to unpack the contents of a JavaScript file?

You know how those packed js files look like, right?
 eval(function(p,a,c,k,e,d){ ... } ('obfuscated-string'.split('|'),0,{}))
It just so happens to be that i have to tweak some large legacy code that looks like that and I want to find a way to turn this into a more readable version.
If that's not possible, can i at least get rid of the eval?

A:

JS Beautifier will both reformat and unpack:
http://jsbeautifier.org/

A:

You can with online unpackers: try one of these, find one that suits you:

Dean Edwards Unpacker
JSUnpack

