No commit activity in last 3 years
No release in over 3 years
Using awesome_print gem, pretty-print JSON in terminal.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.14
>= 12.3.3
~> 3.0

Runtime

 Project Readme

awesome_print_json Build Status Test Coverage

This gem is an awesome_print CLI wrapper that pretty-prints JSON data in terminal.

Installation

gem install awesome_print_json

Usage

$ curl https://hacker-news.firebaseio.com/v0/item/192327.json --no-progress-meter | print_json
$ echo "{\"data\":{\"title\":\"Test\"}}" | print_json

Screenshot

Here is a sample output piping the curl output to print_json. print_json is the function that you can invoke in terminal once awesome_print_json gem is installed.

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install:local.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/wnuqui/awesome_print_json. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

Acknowledgements

awesome_print_json is a simple, thin, CLI wrapper for awesome_print gem.

Similar gem

apj is a similar CLI gem. As a difference, awesome_print_json just rely on output being piped to it.

License

The gem is available as open source under the terms of the MIT License.