https://github.com/kellpossible/csvpretty
A command-line tool that formats CSV input into tables with Unicode box-drawing characters
https://github.com/kellpossible/csvpretty
Last synced: 9 days ago
JSON representation
A command-line tool that formats CSV input into tables with Unicode box-drawing characters
- Host: GitHub
- URL: https://github.com/kellpossible/csvpretty
- Owner: kellpossible
- License: mit
- Created: 2025-11-10T02:20:51.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-11-10T02:39:38.000Z (7 months ago)
- Last Synced: 2025-11-10T04:18:15.005Z (7 months ago)
- Language: Rust
- Size: 28.3 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# csvpretty
A command-line tool that formats CSV input into tables with Unicode box-drawing characters.
Output style and color themes are based on [csvlens](https://github.com/YS-L/csvlens).
## Installation
```bash
cargo install --path .
```
## Usage
```bash
cat data.csv | csvpretty
```
### Options
```
Format CSV input into a beautiful table
Usage: csvpretty [OPTIONS]
Options:
--wrap Text wrapping mode: word, char, or none [default: word] [possible values: word, char, none]
-n, --line-numbers Show line numbers
--no-color Disable column colors
-h, --help Print help
```
## Examples
```bash
# Basic usage with colors and word wrapping
cat data.csv | csvpretty
# With line numbers
cat data.csv | csvpretty -n
# No wrapping, for use with pager
cat data.csv | csvpretty --wrap none | less -S
# Without colors
cat data.csv | csvpretty --no-color
```
## License
MIT