2025-03-14 21:59:59 -06:00
|
|
|
# jtbl
|
|
|
|
|
|
|
|
|
|
> Utility to print JSON and JSON Lines data as a table in the terminal.
|
|
|
|
|
> More information: <https://github.com/kellyjonbrazil/jtbl>.
|
|
|
|
|
|
|
|
|
|
- Print a table from JSON or JSON Lines input:
|
|
|
|
|
|
|
|
|
|
`cat {{file.json}} | jtbl`
|
|
|
|
|
|
|
|
|
|
- Print a table and specify the column width for wrapping:
|
|
|
|
|
|
|
|
|
|
`cat {{file.json}} | jtbl --cols={{width}}`
|
|
|
|
|
|
|
|
|
|
- Print a table and truncate rows instead of wrapping:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`cat {{file.json}} | jtbl {{[-t|--truncate]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Print a table and don't wrap or truncate rows:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`cat {{file.json}} | jtbl {{[-n|--no-wrap]}}`
|