ECMAScript code beautifier/formatter
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 1 commit ahead, 563 commits behind millermedeiros:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
node_modules
test
.gitignore
README.md
index.js
package.json

README.md

esformatter

ECMAScript code beautifier/formatter.

Why?

jsbeautifier.org doesn't have enough options and not all IDEs/Editors have a good JavaScript code formatter. I would like to have a command line tool (and standalone lib) as powerful/flexible as the WebStorm and FDT code formatters.

This tool could also be reused by other node.js libs like escodegen to format the output (so each lib has a single responsibility).

How?

This tool uses rocambole (based on Esprima) to recursively parse the tokens and transform it in place.

Important

This tool is still on early development and is missing support for many important features.

Popular Alternatives

License

Released under the MIT license