Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deminify javascript [duplicate]

Tags:

Possible Duplicate:
Online Tool to Unminify / Decompress JavaScript
Tool to reverse Javascript minify?

Is there a way to convert minified JavaScript code into normal?

like image 421
eomeroff Avatar asked Oct 03 '11 12:10

eomeroff


People also ask

How do you minify a JavaScript file?

To minify JavaScript, try UglifyJS. The Closure Compiler is also very effective. You can create a build process that uses these tools to minify and rename the development files and save them to a production directory.

Can you un minify JavaScript?

You can't unminify a minified file. Minification is a desctructive operation and involves loss of information. For example, if you have a function with a descriptive name, after minifcation that name will be substitute with a meaningless one.

How do you minify a code?

Go to minifycode.com and click the CSS minifier tab. Then paste the CSS code into the input box and click the Minify CSS button. After the new minified code is generated, copy the code. Then go back to the css file of your website and replace the code with the new minified version.


2 Answers

http://jsbeautifier.org/ works like a charm.

Most software distributed under the GPL license will also provide non-minified code.

like image 63
Rob W Avatar answered Sep 24 '22 16:09

Rob W


I use WebStorm by JetBrains for my Javascript IDE, it has auto-format which seems to do the trick pretty well.

like image 30
Pwaddles Avatar answered Sep 23 '22 16:09

Pwaddles