Reads a CSV file and writes the data as a Markdown table.
The CSV file must be formatted as a table, with a single heading row, with unique column titles, followed by data rows.
If you have uv installed, you can use uvx to run the csv-to-md tool without installing it. This command runs it and displays the help message:
uvx --from git+https://github.com/wmelvin/csv-to-md csv-to-md -h
usage: csv-to-md [-h] [--no-info] [--no-source] [-n MD_FILE] [--force]
csv_file
Read a CSV file and write a Markdown table.
positional arguments:
csv_file Path to CSV file.
options:
-h, --help show this help message and exit
--no-info Do not include the 'Created by...' information header.
--no-source Do not include the 'Source:...' header.
-n, --name MD_FILE Name of the output file to create. Optional. By default
the output file is named using the name of the input
(CSV) file with a date_time tag and a '.md' suffix. An
existing file with the same name will not be overwritten
unless the --force option is used.
--force Allow an existing output file to be overwritten.
This project is based on csv_to_md.py which was part of the fewtilities collection.