Giter VIP home page Giter VIP logo

csv2md's Introduction

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

csv2md's People

Contributors

discordanian avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.