• Stars
    star
    342
  • Rank 123,697 (Top 3 %)
  • Language
    Rust
  • License
    MIT License
  • Created about 3 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Format json into table view

๐Ÿ“บ tv

Format json into table view

How to install

For MacOS

$ brew install uzimaru0000/tap/tv

Use cargo

$ cargo install tv-cli

How to use

USAGE

tv [FLAGS] [OPTIONS] [PATH]

FLAGS

-h, --help          Prints help information
    --no-headers    Specify that the input has no header row
-r, --recursive     Recursive display
-V, --version       Prints version information

OPTIONS

-a, --align <left | center | right | none>                  Table alignment [default: none]
-s, --sort <SORT_KEY>                                       Options for sorting by key
    --style <ascii | sharp | rounded | markdown | plain>    Table style [default: ascii]

ARGS

<PATH>    json file path

Example

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

More Repositories

1

clumsy

clumsy is a clone of git implemented in rust.
Rust
127
star
2

UniTEA

Implementation of The Elm Architecture for Unity3D
C#
31
star
3

satori-workers

Sample to run satori with Cloud Flare Workers
TypeScript
30
star
4

oglens

Tools for viewing OGP
Rust
22
star
5

uzimaru0000.github.io

TypeScript
14
star
6

uzimaru.com

Elm
13
star
7

Veauty

Implementation of Virtual-Dom for Unity3D
C#
13
star
8

petit

A CLI Twitter client using kuon
Rust
10
star
9

blog-old

TypeScript
8
star
10

vercel-og-image

Vercel's Runtime for generating OGP
TypeScript
7
star
11

Unity-Fade

ImageEffect of fade
C#
6
star
12

git-todo

git todo
Rust
5
star
13

apex_rank_status

Rust
5
star
14

clumsy-web

Run git on the web with clumsy as wasm
TypeScript
5
star
15

ulmus

Ulmus is a Lisp implementation made with Elm
Elm
5
star
16

eps

Elm package supporter
Go
4
star
17

icons

my icons
HTML
4
star
18

gitpitch-local

Shell
3
star
19

git-commit-ai

A CLI tool to help you write better commit messages powered by GPT.
TypeScript
3
star
20

blog

Astro
3
star
21

elm-brainfuxk

Elm
3
star
22

elm-github-cli

Elm
3
star
23

oreq

The tool for interactively creating curl arguments from OpenAPI.
Rust
3
star
24

elm-weather-app

Elm
3
star
25

uzimaru0000

2
star
26

my-vdom

TypeScript
2
star
27

dotfiles

โš™๏ธ My setting files and installed applications list
Shell
2
star
28

Elm-template

Elm
2
star
29

raycast-discord-utils

TypeScript
2
star
30

alfred-pokedex

Rust
2
star
31

elm-drag-demo

Elm
2
star
32

superchat-bot

TypeScript
1
star
33

homebrew-tap

Ruby
1
star
34

elm-canvas-lifegame

Elm
1
star
35

Veauty-uGUI

C#
1
star
36

webcomponent-sandbox

TypeScript
1
star
37

Sticky

JavaScript
1
star
38

ToDoKotlin

Kotlin
1
star
39

react-todo

Wantedly ใฎใƒ•ใƒญใƒณใƒˆใ‚จใƒณใƒ‰ๆŠ€่ก“่ชฒ้กŒ
JavaScript
1
star
40

Marching

Marching Cubes for Unity
C#
1
star
41

Compute

ComputeShader sample with Unity3D
ShaderLab
1
star
42

yt2tw-extension

TypeScript
1
star
43

PerlinMap

Create terrain using perlin noise
C#
1
star
44

splash

TypeScript
1
star
45

elm-in-vue

Vue
1
star
46

Pazzle

C#
1
star
47

typescript-study

TypeScript
1
star
48

notion-blog-template

TypeScript
1
star
49

aizu-garbage

ไผšๆดฅใฎใ‚ดใƒŸใ‚ซใƒฌใƒณใƒ€ใƒผAPI
Go
1
star
50

use-with-loading

TypeScript
1
star
51

cork-board

Elm
1
star
52

status-checker

JavaScript
1
star
53

TabClock

TypeScript
1
star