Skip to content

okunishinishi/node-fmtjson

Repository files navigation

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.

About

Node.js module to format json file.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published