mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-16 11:55:28 +02:00
20 lines
524 B
Markdown
20 lines
524 B
Markdown
# 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:
|
|
|
|
`cat {{file.json}} | jtbl {{[-t|--truncate]}}`
|
|
|
|
- Print a table and don't wrap or truncate rows:
|
|
|
|
`cat {{file.json}} | jtbl {{[-n|--no-wrap]}}`
|