jsonfmt

0.0.5 • Public • Published

jsonfmt - JSON FORMAT

Installation

npm install jsonfmt -g

Example 1 - output

~/Desktop/file.json contents

[{"foo":"bar"},{"foo":"bar"},{"foo":"bar"},{"foo":"bar"}]

Run command

jsonfmt -f ~/Desktop/file.json

Example output

[
    {
        "foo": "bar"
    },
    {
        "foo": "bar"
    },
    {
        "foo": "bar"
    },
    {
        "foo": "bar"
    }
]

Example 2 - output to file
jsonfmt -f ~/Desktop/file.json > ~/Desktop/fmt_file.json

Readme

Keywords

none

Package Sidebar

Install

npm i jsonfmt

Weekly Downloads

1

Version

0.0.5

License

MIT

Last publish

Collaborators

  • sourcec0de