fmtjson

5.0.2 • Public • Published

fmtjson

Build Status npm Version JS Standard

Format json files.

Installation

$ npm install fmtjson --save

Usage

Format json files.

'use strict'
 
const fmtjson = require('fmtjson')
 
fmtjson([
  'src/**/*.json'
], {
  sort: true
}).then(() => {
  /* ... */
})

Options

Key Description Default
indent Number of indent 2
sort Sort properties or not. false
mode File permission '644'

License

This software is released under the MIT License.

Readme

Keywords

Package Sidebar

Install

npm i fmtjson

Weekly Downloads

242

Version

5.0.2

License

MIT

Unpacked Size

32.7 kB

Total Files

30

Last publish

Collaborators

  • okunishinishi