How to deminify javascript [duplicate]

2019-02-02 10:29发布

问题:

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

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

回答1:

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

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



回答2:

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



回答3:

Chrome's native object inspector will format JS for you, but it won't be able to make sense of the variable names - nothing will.

If you want an online solution, use JSBeautifier. It works well, and is also very handy for making sense of some of the questions you see here on StackOverflow.