Skip to content

Section508Coordinators/CsvToMarkdownTable

 
 

Repository files navigation

CSV To Markdown Table

npm version Build Status GitHub license

Simple JavaScript CSV to Markdown Table Converter

You can see it in action and play with the Live Example.

Requires no external libraries. Works in Node as well as in the browser.

Example Use:

csvToMarkdown( "header1,header2,header3\nValue1,Value2,Value3", ",", true);

Outputs:

| header1 | header2 | header3 | 
|---------|---------|---------| 
| Value1  | Value2  | Value3  | 

Which displays in markdown as:

header1 header2 header3
Value1 Value2 Value3

About

A Simple JavaScript/Node.js CSV to Markdown Table Converter

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 43.7%
  • HTML 35.1%
  • TypeScript 21.2%