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

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.

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
```