0.6.0 • Published 11 years ago
broccoli-esformatter v0.6.0
broccoli-esformatter
JavaScript code formatter for Broccoli with esformatter
Installation
Install with npm. (Make sure you have installed Node.)
npm i --save-dev broccoli-esformatterExample
var esformatter = require('broccoli-esformatter');
tree = esformatter(tree, options);API
esformatter(tree, options)
options
Type: Object Default: {}
preset, indent, lineBreak, whiteSpace options and plugins are available. See the documentation of esformatter for more information.
In addition, you can use config option mentioned below.
options.config
Type: String (file path) or Boolean
This option will be directly passed to the first argument of esformatter.rc():
If you set this option false, this plugin doesn't read any configuration files, but uses default preset instead.
License
Copyright (c) 2014 Shinnosuke Watanabe
Licensed under the MIT LIcense.