JavaScript code formatter for Broccoli with esformatter
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.editorconfig
.esformatter
.gitattributes
.gitignore
.jshintrc
.npmignore
.travis.yml
Brocfile.js
LICENSE
README.md
index.js
package.json

README.md

broccoli-esformatter

NPM version Build Status Dependency Status devDependency Status

JavaScript code formatter for Broccoli with esformatter

Installation

Install with npm. (Make sure you have installed Node.)

npm i --save-dev broccoli-esformatter

Example

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.