Stupidly simple tool to convert csv-file to markdown table
 
 
Go to file
Anthony Axenov 1dbd735d93
Readme
2022-02-17 11:41:04 +08:00
.vscode Initial version 1.0.0 2022-02-16 17:49:22 +08:00
.gitignore Initial version 1.0.0 2022-02-16 17:49:22 +08:00
LICENSE Initial version 1.0.0 2022-02-16 17:49:22 +08:00
Makefile Initial version 1.0.0 2022-02-16 17:49:22 +08:00
README.md Readme 2022-02-17 11:41:04 +08:00
example.csv Initial version 1.0.0 2022-02-16 17:49:22 +08:00
go.mod Initial version 1.0.0 2022-02-16 17:49:22 +08:00
main.go Initial version 1.0.0 2022-02-16 17:49:22 +08:00

README.md

csv2md

Stupidly simple tool to convert csv-file to markdown table.

Outputs result in stdout.

Usage

csv2md example.csv > example.md # save result to new file
csv2md example.csv | less       # view result using pager

...anything is possible with redirection and piping

IMPORTANT:

  • input file must be valid csv
  • whitespaces allowed only between double-quotes

Examples can be found here: https://people.sc.fsu.edu/~jburkardt/data/csv/csv.html

Compilation

  1. Install go.
  2. Clone this repo.
  3. Run make help to get help or go run . <csv_path> to build and run temporary binary.

License

MIT