mirror of https://github.com/anthonyaxenov/csv2md
Anthony Axenov bcb0a39d82 | ||
---|---|---|
.vscode | ||
.gitignore | ||
LICENSE | ||
Makefile | ||
README.md | ||
example.csv | ||
go.mod | ||
main.go |
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
- Install go.
- Clone this repo.
- Run
make help
to get help orgo run . <csv_path>
to build and run temporary binary.