/mdtable2csv

Convert markdown table to csv

Primary LanguageGoMIT LicenseMIT

Go release

mdtable2csv

Convert the markdown table to CSV.

Screenshot

Installation

If you use Homebrew, run the following:

$ brew tap 515hikaru/tap
$ brew install 515hikaru/tap/mdtable2csv

Or go get:

$ go get -u github.com/515hikaru/mdtable2csv

Usage

$ mdtable2csv
|foo|bar|boo|
|---|---|---|
|a|b|c|^D
foo,bar,boo
a,b,c

Of course, you can use standard input with |, for example:

$ cat foo.md
|foo|bar|boo|
|---|---|---|
| a | b | c |

$ cat foo.md | mdtable2csv
foo,bar,boo
a,b,c

See mdtable2csv -help for more details.

LICENSE

MIT