Skip to content

Latest commit

 

History

History
55 lines (38 loc) · 830 Bytes

README.md

File metadata and controls

55 lines (38 loc) · 830 Bytes

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