mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 15:26:04 +02:00
jtbl: add page (#6181)
This commit is contained in:
parent
ce099fa062
commit
82de400ab8
1 changed files with 20 additions and 0 deletions
20
pages/common/jtbl.md
Normal file
20
pages/common/jtbl.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# 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`
|
||||
|
||||
- Print a table and don't wrap or truncate rows:
|
||||
|
||||
`cat {{file.json}} | jtbl -n`
|
Loading…
Add table
Reference in a new issue