0.6.0 • Published 10 years ago

broccoli-esformatter v0.6.0

Weekly downloads
-
License
-
Repository
github
Last release
10 years ago

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.

0.6.0

10 years ago

0.5.0

10 years ago

0.4.0

10 years ago

0.3.0

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago

0.0.0

10 years ago