apeman-task-js-beautify
Beautify code written in javascript.
Last updated 5 years ago by miyazakijunichi .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install apeman-task-js-beautify 
SYNC missed versions from official npm registry.

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

Key Type Default Description
ignoreError bool false ignore error
ignore string[]|string [] file patterns to ignore
beautifyOptions object {} options for js-beautify

License

This software is released under the MIT License.

Links

Current Tags

  • 1.0.4                                ...           latest (5 years ago)

3 Versions

  • 1.0.4                                ...           5 years ago
  • 1.0.3                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (8)
Dev Dependencies (11)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |