Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A Javascript formatter written in Javascript using a PEG
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
pegjs-0.5
LICENSE
README.md
format.js
input.js
javascript.js
javascript.pegjs
make_grammar.sh
test.js

README.md

Javascript Formatter

A Javascript formatter based on a PEG using PEG.js by David Majda.

Currently, it's tested with Node, but should be compatible with other Javascript environments.

Getting Started

node test.js

Buyer Beware!

Currently, comments are discarded and it may still miss some uncommon Javascript constructs.

Credits

The javascript.pegjs is based on an example of PEG.js.

Something went wrong with that request. Please try again.