CSV to Markdown Table Generator — Donat Studios
source link: https://donatstudios.com/CsvToMarkdownTable
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
CSV To Markdown Table Generator
Comments:
Tags: ToolsNodeJSJavaScriptGitHubCSV
By Jesse Donat on Sep. 14, 2014 (Updated: Jul. 8, 2019)
Update July 8, 2019: Added more graceful pipe |
and backslash \
handling.
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.
Fork my source on GitHub!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: Tats on Apr. 27, 2016
Very useful!
Thanks a lot!
Comment by: Andrew Lane on Jun. 13, 2016
Comment by: Jean on Jun. 14, 2016
Comment by: Shaul on Jun. 22, 2016
Comment by: JiangNan on Jun. 30, 2016
Comment by: Nitin Bansal on Jul. 4, 2016
Comment by: will on Aug. 3, 2016
Thanks!
Comment by: Mitchell on Aug. 24, 2016
Comment by: Brady Holt on Aug. 30, 2016
Comment by: Hemal Jivani on Sep. 12, 2016
I use it all the time and its awesome piece of work.
Comment by: ryan on Dec. 21, 2016
Comment by: szabacsik on Jan. 26, 2017
Comment by: ferrrari on Feb. 1, 2017
Comment by: mohammad on Feb. 23, 2017
Comment by: Brady on Mar. 21, 2017
Comment by: Dawn on Apr. 1, 2017
Comment by: Matthew Dolman on Jul. 5, 2017
Comment by: Alex on Sep. 22, 2017
Comment by: Richard on Oct. 13, 2017
Comment by: Deepak on Nov. 6, 2017
Comment by: Kris on Nov. 22, 2017
Comment by: Lewis on Dec. 6, 2017
Comment by: Andreas on Dec. 14, 2017
Comment by: Raul Liborio on Jun. 19, 2018
Comment by: Mhg on Aug. 7, 2018
Excelente.
Esto ahorra muchos problemas.
Muchas gracias.
Comment by: Manishdan on Oct. 9, 2018
Comment by: Henk Rijks on Nov. 14, 2018
Comment by: hoverhuang on Jan. 7, 2019
Comment by: typebrook on Feb. 11, 2019
Comment by: Eric on May. 18, 2019
Comment by: Ted on Jun. 7, 2019
| 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: Andy on Jun. 24, 2019
Comment by: Caroline on Aug. 30, 2019
Comment by: Qufei on Sep. 6, 2019
Comment by: Marie Moore on Oct. 10, 2019
Comment by: Ramesh Kotha on Dec. 14, 2019
Comment by: gil on Jan. 4, 2020
Comment by: Frank on Mar. 10, 2020
Comment by: bm on Jul. 30, 2020
Comment by: Nantuko86 on Oct. 27, 2020
Comment by: Miguel on Jan. 10, 2021
Thank you.
Comment by: Chad Baldwin on Jan. 29, 2021
Comment by: Jay Kint on Mar. 26, 2021
Comment by: Aruvi on Nov. 15, 2021
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK