Skip to content
/ csv2md Public

A little script that converts a csv file into a pandoc-markdown-formatted table.

License

Notifications You must be signed in to change notification settings

uvtc/csv2md

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

csv2md.clj

Turns this:

aquamarine,8,circle
green,9,ellipsoid
blue,10,curvy

into:

------------  ----  -----------
aquamarine    8     circle
green         9     ellipsoid
blue          10    curvy
------------  ----  -----------

(You'll have to move that first table delimiter line down if the first line of your csv is intended to be a heading.)

What is it?

It's a script. It happens to be written in Clojure.

Prerequisites

You'll need to have already installed:

  • Java (known to work with openjdk-{7,8}-jre)
  • inlein

Compatibility

The author has not given even a passing thought to running this program on any OS other than GNU/Linux.

Install

Just put csv2md.clj anywhere in your $PATH, and make sure it's executable (chmod +x csv2md.clj).

Usage

csv2md.clj foo.csv > foo.md

License

GPLv3. See COPYING.txt for details.

Copyright 2014, 2015, 2016, 2017 John Gabriele jgabriele@fastmail.fm

About

A little script that converts a csv file into a pandoc-markdown-formatted table.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published