Project

inspect

0.0
No commit activity in last 3 years
No release in over 3 years
Drop into a powerful REPL to inspect your Json, CSV, and HTML files.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.6
~> 0.10.1
 Project Readme

inspect

Inspect a JSON, CSV or HTML file in a Ruby REPL.

Try:

echo '{"hello": "world"}' | inspect

And you will get:

[1] pry(main)>

Data is parsed and stored as x:

[1] pry(main)> x['hello']
=> "world"
[2] pry(main)>

Install

gem install inspect

Usage

cat FILE | inspect [FORMAT]

FORMAT is optional and could be one of the following: json, html, csv

Examples

cat file.csv | inspect
cat file.json | inspect
cat file.html | inspect
cat file.html | inspect html
curl https://api.github.com/users/siadat/repos | inspect
curl https://api.github.com/repos/siadat/inspect/commits | inspect

Contribute

Create an issue or send a pull request. Use rake to run all tests:

rake test