awesome_print_json Build Status

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.