Demo from project js-indentator
Please paste your JavaScript code in the first text area and press "do it". The indenter will produce some different styles of indentation versions of your code
You can edit this configuration JSON and "do it again".
Note that properties like 'tab' and 'newline' are supported by all the indentators, while properties like VAR, VAR_COMMA, FUNCTION, etc are only supported by the 'variable1' style
You can see a list of al supported variable properties of this style and default values in the sources.