Skip to main content

Module csv

Module csv 

Source
Available on crate feature csv only.
Expand description

CSV / TSV extraction via the csv crate.

Auto-detects delimiter from the file extension: .tsv → tab, everything else → comma. Output is a single GitHub-Flavored Markdown table with the first row treated as the header row (the CSV convention).

For Sery-style indexing/AI-grounding use cases, this gives the consumer a structured, searchable text representation. For consumers that need the raw CSV bytes, the file is on disk anyway — mdkit’s job is to produce markdown.

Structs§

CsvExtractor
CSV / TSV extractor backed by the csv crate. Construct via CsvExtractor::new — there’s no per-instance state.