https://github.com/tos-kamiya/tapr
Table pretty printer for CSV and TSV files
https://github.com/tos-kamiya/tapr
cli-tool csv prettier tsv
Last synced: 8 months ago
JSON representation
Table pretty printer for CSV and TSV files
- Host: GitHub
- URL: https://github.com/tos-kamiya/tapr
- Owner: tos-kamiya
- Created: 2022-03-22T01:22:09.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-02T11:31:01.000Z (almost 4 years ago)
- Last Synced: 2025-02-10T22:46:54.521Z (about 1 year ago)
- Topics: cli-tool, csv, prettier, tsv
- Language: Rust
- Homepage:
- Size: 469 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tapr
`tapr` is a table pretty-printer. Outputs a CSV or TSV file as nicely as possible by adjusting column widths.
Screenshot:

## Installation
```sh
cargo install tapr
```
## CLI
```
USAGE:
tapr [FLAGS] [OPTIONS]
FLAGS:
-c, --csv Force treats input file as CSV
-h, --help Prints help information
-H, --header Prints first line as a header
-n, --line-number Prints line number
-t, --tsv Force treats input file as TSV
-V, --version Prints version information
OPTIONS:
-s, --line-sampling Sampling size of lines to determine width of each column. Specify `0` for +inf
[default: 100]
ARGS:
Input file. Specify `-` to read from the standard input
```
To pipe `tapr` to `less`, do not forget to specify `--raw-control-chars` option to `less`:
```sh
...(some command)... | tapr - | less -R
```
## License
MIT/Apache-2.0