CSV To Markdown Table Generator
Update July 8, 2019: Added more graceful pipe
| and backslash
While doing code reviews on GitHub I find myself profiling a lot of SQL queries, getting
EXPLAIN output into a markdown format for GitHub became very important, and was a huge pain to do by hand.
While there were tools out there, nothing I could easily copy and paste tab seperated query results into, so I created this. The markdown this outputs should work with most table supporting Markdowns flavors such as Markdown Extra and GitHub Flavored Markdown.
The default tab separated setting is very useful for pasting straight from Excel or other tabular data sources like SQL editors.
Caveat - while it does essentially parse CSV it is not quotation mark aware. If need or demand arises I may look into it.
The script is available on GitHub and is Node.js ready. More details can be found on GitHub. It is also available via npm.
Comment by: Nitin Bansal on
Comment by: Hemal Jivani on
I use it all the time and its awesome piece of work.
Comment by: ferrrari on
Comment by: Matthew Dolman on
Comment by: Richard on
Comment by: Ted on
| cost | coins | cost per 100 coins | coins per $1 | |---------|-------|--------------------|--------------| | $0.99 | 100 | $0.99 | 101.0 | | $8.99 | 550 | $1.63 | 61.2 | | $16.99 | 1200 | $1.42 | 70.6 | | $34.99 | 2500 | $1.40 | 71.4 | | $69.99 | 5200 | $1.35 | 74.3 | | $169.99 | 14500 | $1.17 | 85.3 |
Comment by: bm on
Comment by: Chad Baldwin on
Comment by: nkat on
Only after I learned that this table format has its own "table Markdown" name I managed to find this super useful page, so maybe it'd be a good idea to tag the page to more general requests
Anyway, thank you once again!