ape-formatting

v2.0.1
Format files

ape-formatting

Build Status Code Climate Code Coverage npm Version JS Standard

Format files

Installation

$ npm install ape-formatting --save

Usage

'use strict'

const apeFormatting = require('ape-formatting')

// Format javascript files
apeFormatting.formatJs('lib/*.js', {
  ignore: 'index.js'
}).then(() => {
  /* ... */
})

// Format json files
apeFormatting.formatJson('lib/*.json', {
  indent: 2,
  sort: true
}).then(() => {
  /* ... */
})

License

This software is released under the MIT License.

Links

Metadata

  • MIT
  • >=8
  • Taka Okunishi
  • released 2/24/2019

Downloads

Maintainers