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
- Host: GitHub
- URL: https://github.com/sourcec0de/jsonfmt
- Owner: sourcec0de
- Created: 2014-05-29T14:08:41.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-05-29T14:19:50.000Z (about 12 years ago)
- Last Synced: 2025-01-12T11:32:58.871Z (over 1 year ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```