'beautifys' (formats) assets such as javascript files to be easily read

Node Beautify - an asset beautifier for node.js

to beautify javascript:

    require('beautify-node').beautifyJs(source, options);

where source is a string of javascript source code, and options is a set of options (not required)

- indentSize: 4
- indentChar: ' '
- preserveNewlines: true
- bracesOnOwnLine: false
- keepArrayIndentation: false
- spaceAfterAnonFunction: true
- indentLevel: 0
  • node.js

The original JS Beautifier is written by Einar Lielmanis.

MIT-License, see LICENSE.txt.

  • Add support for other asset types
  • Integrate into Node-Tabs / Cram