De"compressing" Javascript

102 Views Asked by At

This will without a doubt be a duplicate, but I have no idea what else to call it.

A friend of mine is trying to learn Javascript. He accidentally saved the "compressed" (all whitespace removed) version as the version he has, and wants me to help format it again. He's emailed me a massive .js file and... I'm not sure what to do.

I don't want to install (no doubt Eclipse has one) a Javascript plugin for Eclipse just to right click and format once. Is there a tool for this? A parser that'll build an AST then format that AST?

1

There are 1 best solutions below

0
tywalker On

Tool to Unminify / Decompress JavaScript

Apparently JS beautifier will do the trick sometimes.

There's a plethora of others on there.