https://github.com/alextanhongpin/json-pprint
A node CLI app to pretty print your json file and save the prettified json.
https://github.com/alextanhongpin/json-pprint
node nodejs pprint
Last synced: 12 months ago
JSON representation
A node CLI app to pretty print your json file and save the prettified json.
- Host: GitHub
- URL: https://github.com/alextanhongpin/json-pprint
- Owner: alextanhongpin
- Created: 2017-06-11T10:42:07.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-11T10:53:21.000Z (almost 9 years ago)
- Last Synced: 2025-01-29T21:54:20.506Z (about 1 year ago)
- Topics: node, nodejs, pprint
- Language: JavaScript
- Size: 31.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JSON Pretty Print
A CLI tool that pretty prints your json file so that it looks neater. Will automatically indent your file with 2 spaces.
## Installation
Install globally so that you can invoke it anywhere:
```bash
$ npm i -g json-pprint-cli
```
## Usage
```bash
$ json-pprint filename.json
```
You can also save the formatted json.
```bash
$ json-pprint -o output.json filename.json
```