Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mablay/prettyj
command line tool prettifying json
https://github.com/mablay/prettyj
Last synced: 16 days ago
JSON representation
command line tool prettifying json
- Host: GitHub
- URL: https://github.com/mablay/prettyj
- Owner: mablay
- Created: 2017-07-25T09:49:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-25T20:10:04.000Z (over 7 years ago)
- Last Synced: 2024-10-31T13:08:42.914Z (17 days ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Pipe JSON to prettyj on the command line to receive formatted JSON to stdout.
## Setup
npm install -g prettyj## Examples
`echo` example
echo '{"foo": "bar"}' | prettyj
{
"foo": "bar"
}
`cat` examplecat filename.json | prettyj
`curl` examplecurl http://example.com/filename.json | prettyj
## Testing
There is only one test case and it's rather sloppy.
Since prettyj has < 20 lines of code and no dependencies you might just see for yourself.