GithubHelp home page GithubHelp logo

tv's Introduction

๐Ÿ“บ tv

Format json into table view

Usage

$ cat example.json
[
  {
    "id": 1,
    "name": "Leanne Graham",
    "username": "Bret",
    "email": "[email protected]",
    "address": {
      "street": "Kulas Light",
      "suite": "Apt. 556",
      "city": "Gwenborough",
      "zipcode": "92998-3874",
      "geo": {
        "lat": "-37.3159",
        "lng": "81.1496"
      }
    },
    "phone": "1-770-736-8031 x56442",
    "website": "hildegard.org",
    "company": {
      "name": "Romaguera-Crona",
      "catchPhrase": "Multi-layered client-server neural-net",
      "bs": "harness real-time e-markets"
    }
  },
  ...
]

$ tv test.json
+-------+-------+-------------------------+--+------------------------+---------------------+----------------+-------------+
|address|company|email                    |id|name                    |phone                |username        |website      |
+-------+-------+-------------------------+--+------------------------+---------------------+----------------+-------------+
|...    |...    |[email protected]        |1 |Leanne Graham           |1-770-736-8031 x56442|Bret            |hildegard.org|
|...    |...    |[email protected]        |2 |Ervin Howell            |010-692-6593 x09125  |Antonette       |anastasia.net|
|...    |...    |[email protected]       |3 |Clementine Bauch        |1-463-123-4447       |Samantha        |ramiro.info  |
|...    |...    |[email protected]|4 |Patricia Lebsack        |493-170-9623 x156    |Karianne        |kale.biz     |
|...    |...    |[email protected] |5 |Chelsey Dietrich        |(254)954-1289        |Kamren          |demarco.info |
|...    |...    |[email protected]  |6 |Mrs. Dennis Schulist    |1-477-935-8478 x6430 |Leopoldo_Corkery|ola.org      |
|...    |...    |[email protected]   |7 |Kurtis Weissnat         |210.067.6132         |Elwyn.Skiles    |elvis.io     |
|...    |...    |[email protected]     |8 |Nicholas Runolfsdottir V|586.493.6943 x140    |Maxime_Nienow   |jacynthe.com |
|...    |...    |[email protected]  |9 |Glenna Reichert         |(775)976-6794 x41206 |Delphine        |conrad.com   |
|...    |...    |[email protected]   |10|Clementina DuBuque      |024-648-3804         |Moriah.Stanton  |ambrose.net  |
+-------+-------+-------------------------+--+------------------------+---------------------+----------------+-------------+

Run tv --help to view detailed usage.

How to install

For MacOS

$ brew install uzimaru0000/tap/tv

tv's People

Contributors

uzimaru0000 avatar takuma-watanabe avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.