1.0.4 • Published 9 years ago

apeman-task-js-beautify v1.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

apeman-task-js-beautify

Build Status Code Climate Code Coverage npm Version

Beautify code written in javascript.

Installation

$ npm install apeman-task-js-beautify --save-dev

Usage

  1. Define a task within Apemanfile.js
  2. Call the task via apeman task command.

Apemanfile.js

/** This example Apemanfile to use apeman-task-js-beautify */

"use strict";

module.exports = {
    $pkg: {/*...*/},
    $tasks: {
        // Define your own task.
        'my-task-01': require('apeman-task-js-beautify')('some/pattern/**/*.js', {
            //Options
            beautifyOptions: {
                'indent_size': 4
            }
        })
    }
};

Then,

$ apeman task my-task-01

Options

KeyTypeDefaultDescription
ignoreErrorboolfalseignore error
ignorestring[]|string[]file patterns to ignore
beautifyOptionsobject{}options for js-beautify

License

This software is released under the MIT License.

Links