How to unpack the contents of a JavaScript file?

compression, eval, javascript, unpack

Solution

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

- Dean Edwards Unpacker

- JSUnpack

Problem

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?

Original source