✨ Lightweight CSV viewer in Rust with clean modular design, alignment preview, and customizable separators
- Fast CSV reading with optional headers
- Preview rows in a clean table format
- Customizable delimiter
- Limits displayed rows for large files
- Alternating row colors for readability
Make sure you have Rust installed. Clone the repository and build the project:
git clone https://github.com/Neotoxic-off/rcsv.git
cd rcsv
cargo build --releaseBasic usage:
cargo run -- path/to/file.csvOptional arguments:
-d, --delimiter <DELIMITER> Set a custom delimiter [default: ,]
-r, --rows <ROWS> Set number max of rows to render [default: 30]
-n, --no-header Specify if CSV does not have a header row
-h, --help Print help
-V, --version Print version
Display a CSV file with default settings:
cargo run -- ./data/example.csvDisplay a CSV using a semicolon as delimiter:
cargo run -- ./data/example.csv -d ";"Display only the first 50 rows:
cargo run -- ./data/example.csv -r 50Display a CSV file without a header:
cargo run -- ./data/example.csv --no-header