format-jsonfile

1.0.3 • Public • Published

format-jsonfile

format-jsonfile is a CLI tool just for formatting your json files.

Install

Using git:

$ git clone https://github.com/tmokmss/format-jsonfile.git
cd format-jsonfile
$ npm install .

Using npm:

$ npm install -g format-jsonfile

Usage

Usage: format-jsonfile [input json filename] [OPTIONS]
By default, the formatted json is printed to console

-o | --out    : specify output filename
-w | --width  : specify the number of spaces for indent
-e | --encode : specify encoding for input json (utf8 by default)
-s | --space  : indent by space (default)
-t | --tab    : indent by tab
-h | --help   : print help

Readme

Keywords

Package Sidebar

Install

npm i format-jsonfile

Weekly Downloads

51

Version

1.0.3

License

MIT

Unpacked Size

4.67 kB

Total Files

6

Last publish

Collaborators

  • tmokmss