f1aa5d3eff6ddab76c83fe58910e26a6c1c7d60d
- stdin support - refactored error handling - help and some comments in src
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
- Install go.
- Clone this repo.
- Run
make helpto get help orgo run . <csv_path>to build and run temporary binary.
License
Languages
Go
78.2%
Makefile
21.8%