There is a GNU indent for styling C sources, are there any equivalents for JavaScript?
I want it to have options for coding style, indention style, etc. just like indent.
I will be using it for a pretty large project on *NIX platform, so I will not like Windows-only utilities or online tools.
There’s jsBeautifier, which can be run from the command line via Rhino in a Java-enabled environment or run via V8 (or a couple of others, check out the github page). Apparently they’re working on a Python command-line version.
Apparently someone’s made a start (at least) on updating(No, apparently it’s just a web page front-end toindentitself to understand JavaScript. The joy of open source! Even if incomplete, the syntaxes are so similar…indent— not helpful at all.) So rephrasing: I wonder how hard it would be to modifyindentto support JavaScript? The syntaxes are so similar…