Jump to content

JavaScript Decompressor


aspnetguy

Recommended Posts

I got tired of downloading a JS library that had been compressed to conserve size. This is great for performance but sometimes I what to take a look at the code especially if I get an error.So I whipped up this program to decompress JS files that have had all whitespace removed. It isn't perfect and the end result is not that pretty but is much better than adding the white space by hand.In the zip is JSDecompress.exe and jsdecompress.bat (plus source code). This is a Console Application written in C# it produces a file at the path you specified with _uncompressed.ext add to the original filename.Change the batch file to insert to exact location of the file you want to decompress. ENJOY!jsdecompress.zip* Doesn't seem to want to download.If you can't download the above attachemnt you can download the zip from here http://www.geekdaily.net/downloads/jsdecompress.zip

Link to comment
Share on other sites

  • 1 month later...

Nice :) 'tis usefull

Link to comment
Share on other sites

  • 4 months later...
the attachment is gone..hmmm
Thanx, now I can see it!!! .... But still unable to download it :) Say truth - you make fun of me. Don't you? :)
Sorry, but you do not have permission to use this feature. If you are not logged in, you may do so using the form below if available.
Link to comment
Share on other sites

ok, what happens when you try to download? What browser are you using?
As I said before, I get an error message:
Sorry, but you do not have permission to use this feature. If you are not logged in, you may do so using the form below if available.
But, I am logged in. It is a typical permissions problem, I suppose.p.s. firewall deactivated, tried with Firefox and IE - same result.
Link to comment
Share on other sites

As I said before, I get an error message:But, I am logged in. It is a typical permissions problem, I suppose.p.s. firewall deactivated, tried with Firefox and IE - same result.
Me too. BTW: how do you compress a Javascript file? Is it just a zipped file?
Link to comment
Share on other sites

  • 2 weeks later...
Me too. BTW: how do you compress a Javascript file? Is it just a zipped file?
You can use something like http://dean.edwards.name/packer/. It removes all comments and extra whitespace fromt he file making it smaller and downlaods faster. You can download JSDecompress here http://www.geekdaily.net/downloads/jsdecompress.zipSorry for taking so long to get it uploaded.
Link to comment
Share on other sites

  • 10 months later...
You can use something like http://dean.edwards.name/packer/. It removes all comments and extra whitespace fromt he file making it smaller and downlaods faster. You can download JSDecompress here http://www.geekdaily.net/downloads/jsdecompress.zipSorry for taking so long to get it uploaded.
I know this is an old post but and would like to download the JSDecompress but cannot download attachments for some reason I know its my first post but it says permission denied you are not logged in very strange.I managed to Download a php script that packs JS yestured and I just reversed it to make it unpack the Js files instead but would like to see this one just because it nice to see how others do things.thanks
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...