https://github.com/moosemorals/jp
Command line JSON formatter
https://github.com/moosemorals/jp
command-line-tool formatter golang json
Last synced: 3 months ago
JSON representation
Command line JSON formatter
- Host: GitHub
- URL: https://github.com/moosemorals/jp
- Owner: Moosemorals
- License: isc
- Created: 2018-10-15T18:04:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-15T18:09:58.000Z (over 7 years ago)
- Last Synced: 2025-03-30T09:42:38.316Z (over 1 year ago)
- Topics: command-line-tool, formatter, golang, json
- Language: Go
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jp: A command line tool to prettyfy JSON
## Install
$ git clone https://github.com/Moosemorals/jp.git
$ cd jp
$ make install
The command `jp` will be installed into `$GOROOT/bin` (assuming the
tests pass)
## Run
$ jp < infile.json > outfile.json
## Options
* -compact : Strip out any non-meaningful whitespace
* -indent n : Set the indent width (default 2)
## Licence
This package is covered by the [ISC licence](LICENCE)