An open API service indexing awesome lists of open source software.

https://github.com/sourcec0de/jsonfmt

a command line tool for formatting json files
https://github.com/sourcec0de/jsonfmt

Last synced: about 1 year ago
JSON representation

a command line tool for formatting json files

Awesome Lists containing this project

README

          

jsonfmt - JSON FORMAT
=====================

#### Installation

```shell
npm install jsonfmt -g
```

#### Example 1 - output

**~/Desktop/file.json** contents

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

**Run command**

```shell
jsonfmt -f ~/Desktop/file.json
```

**Example output**

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

-------------------------------------------------------------

##### Example 2 - output to file

```shell
jsonfmt -f ~/Desktop/file.json > ~/Desktop/fmt_file.json
```