For package maintainers and hackage trustees
Formats lines of TSV, CSV, or DSV (delimiter-separated values) into a pretty
plain text table, wrappings cells with long content to try to fit the table in
the screen.
Format Rails issues from the GitHub API into a table. This example uses
jq and
jsontsv to transform the GitHub API JSON
into tab separated values before piping that data into table:
Outputs this when the terminal width is 72 characters:
You can use table to pretty-format TSV output for mysql, psql, or
sqlite3 as well, especially when you need row cell content to wrap to fit
everything nicely on the screen.
MIT License