Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

11 Commits

Repository files navigation

Rcsv

✨ Lightweight CSV viewer in Rust with clean modular design, alignment preview, and customizable separators

Features

  • 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

Demo

Installation

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

Usage

Basic usage:

cargo run -- path/to/file.csv

Optional 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

Examples

Display a CSV file with default settings:

cargo run -- ./data/example.csv

Display 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 50

Display a CSV file without a header:

cargo run -- ./data/example.csv --no-header

About

✨ Lightweight CSV viewer in Rust with clean modular design, alignment preview, and customizable separators

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages