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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.5
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.5
    1
  • 0.0.4
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i jsonfmt

Weekly Downloads

1

Version

0.0.5

License

MIT

Last publish

Collaborators

  • sourcec0de