Skip to content

Discordanian/csv2md

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csv2md

CSV to Mark Down table.

Takes a CSV file and displays a markdown version of it as a table.

Default is reading from STDIN and writing to STDOUT.

Can be made an OSX Service and replace text in place as seen here: https://youtu.be/YSHRy8tn8kE

Help

USAGE:
    csv2md [FLAGS] [OPTIONS]

FLAGS:
    -d, --debug      Turn on Debug
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -i, --infile <FILE>           A CSV Input File
    -o, --outfile <FILE>          A Mark Down Output File to write to

Example

Sample CSV input:

Header 1, Header II, Header Three
From my childhoods hour, I have not, been
As others, were I have, not seen
As, others saw - I could, not bring
My, passions, from a common spring

Which renders to:

| Header 1                |  Header II            |  Header Three         |
|-------------------------|-----------------------|-----------------------|
| From my childhoods hour |  I have not           |  been                 |
| As others               |  were I have          |  not seen             |
| As                      |  others saw - I could |  not bring            |
| My                      |  passions             |  from a common spring |

Which is markdown for:

Header 1 Header II Header Three
From my childhoods hour I have not been
As others were I have not seen
As others saw - I could not bring
My passions from a common spring

About

CSV to Mark Down table

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages