node-beautify

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

npm install node-beautify
71 downloads in the last day
363 downloads in the last week
1 279 downloads in the last month

Node Beautify - an asset beautifier for node.js

Usage

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)

Default Options

- indentSize: 4
- indentChar: ' '
- preserveNewlines: true
- bracesOnOwnLine: false
- keepArrayIndentation: false
- spaceAfterAnonFunction: true
- indentLevel: 0

Requirements

  • node.js

Acknowledgements

The original JS Beautifier is written by Einar Lielmanis.

License

MIT-License, see LICENSE.txt.

Roadmap

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