2022-02-16 09:49:22 +00:00
|
|
|
# csv2md
|
|
|
|
|
|
|
|
Stupidly simple tool to convert csv-file to [markdown](https://spec-md.com/) table.
|
|
|
|
|
|
|
|
Outputs result in stdout.
|
|
|
|
|
2022-02-17 03:41:04 +00:00
|
|
|
## Usage
|
2022-02-16 09:49:22 +00:00
|
|
|
|
|
|
|
```shell
|
2022-02-17 03:41:04 +00:00
|
|
|
csv2md example.csv > example.md # save result to new file
|
|
|
|
csv2md example.csv | less # view result using pager
|
2022-02-16 09:49:22 +00:00
|
|
|
|
|
|
|
...anything is possible with redirection and piping
|
|
|
|
```
|
|
|
|
|
2022-02-17 03:41:04 +00:00
|
|
|
> **IMPORTANT:**
|
|
|
|
> * input file must be valid csv
|
|
|
|
> * whitespaces allowed only between double-quotes
|
2022-02-16 09:49:22 +00:00
|
|
|
|
|
|
|
Examples can be found here: https://people.sc.fsu.edu/~jburkardt/data/csv/csv.html
|
2022-02-17 03:41:04 +00:00
|
|
|
|
|
|
|
## Compilation
|
|
|
|
|
|
|
|
1) [Install go](https://go.dev/learn/).
|
|
|
|
2) Clone this repo.
|
|
|
|
3) Run `make help` to get help or `go run . <csv_path>` to build and run temporary binary.
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
[MIT](LICENSE)
|