Skip to content

wmelvin/csv-to-md

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csv-to-md

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

Command Line Usage

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.

Notes

This project is based on csv_to_md.py which was part of the fewtilities collection.

About

Reads a CSV file and writes a Markdown table

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published