jsonfmt
v0.0.5
Published
format json from command line
Downloads
2
Readme
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