Prettifies JavaScript using esprima and escodegen
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
License
core wrappers
docs
node_modules
src
.gitattributes
.gitignore
.nojekyll
README.md
index.html
index.js
package.json

README.md

Prettifies JavaScript on nodejs

It's as simple as:

var formatter, fs, source, out;

formatter = require('atropa-jsformatter');
fs = require('fs');


source = fs.readFileSync('./example messy code.js', 'utf8');

out = formatter(source);

console.log(out);

Install it from npm

npm install atropa-jsformatter

Visual studio intellisense support is available in docs/vsdoc/OpenLayersAll.js Full documentation may be found at http://matthewkastor.github.com/atropa-jsformatter