An open API service indexing awesome lists of open source software.

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

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:
![](docs/images/run1u.png)

## 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