/mdtable2csv

Convert markdown table to csv file

Primary LanguageGoApache License 2.0Apache-2.0

mdtable2csv - Convert Markdown Table To CSV File

This application convert markdown table to csv file.

GitHub license GitHub issues

Install via Homebrew

brew tap jjuarez/mdtable2csv
brew install mdtable2csv

Usage

mdtable2csv convert {filePath} {delimiter(default ',')}

Examples

mdtable2csv convert example/markdown.md
mdtable2csv convert example/markdown.md ;

Result

| Tables        | Are           | Cool  |
| ------------- |:-------------:| -----:|
| col 3 is      | right-aligned | $1600 |
| col 2 is      | centered      |   $12 |
| zebra stripes | are neat      |    $1 |
Tables,Are,Cool
col 3 is,right-aligned,$1600
col 2 is,centered,$12
zebra stripes,are neat,$1

Run this project

1 . Clone project on your machine

git clone git@github.com:jjuarez/mdtable2csv.git

2 . Change directory

cd mdtable2csv

3 . Build

go build .

4 . Run

./mdtable2csv convert example/markdown.md

Run Test

go test ./cmd/

TODO

  • Documentation
  • Brew repository
  • Test
  • Argument helper
  • Argument for trim option
  • Argument for new file name

Getting help

If you're having trouble getting this project running, feel free to open an issue