fmtjson
v5.0.2
Published
Format json files.
Downloads
1,603
Readme
fmtjson
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.