I've been digging through Stack Overflow as well as a number of Google searches, and I cannot find a satisfactory code formatter for Javascript.
I have found several related tools, such as syntax highlighters and pretty-printers, but I am looking for a tool that I can ideally create a wrapper for in Eclipse and simply run from the menu bar. Hence, if any Java-based ones are available, that is a big plus. Free and/or open-source is preferred as well.
I am looking for something that my development group can use to maintain a consistent code style.
Thanks.
[EDIT] Thank you for the incredibly fast responses! I would upvote you both if I had any karma. But especially kRON for linking to the format customizations page.
[EDIT] Related question on Stack Overflow.