Skip to content

BatuhanKucukali/mdtable2csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mdtable2csv - Convert Markdown Table To Csv File

This application convert markdown table to csv file.

GitHub license GitHub issues Go Report Card

Install via Homebrew

brew tap BatuhanKucukali/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:BatuhanKucukali/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