/csv2md

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

Primary LanguageClojureGNU General Public License v3.0GPL-3.0

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