Wondering what’s next for npm?Check out our public roadmap! »

    csv-to-markdown-table
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.0 • Public • Published

    CSV To Markdown Table

    npm version npm Build Status Coverage 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

    Notes

    A well done CSV to JIRA Confluence Wiki Markup fork is maintained here: https://github.com/terriann/CsvToPlainTextTable

    Install

    npm i csv-to-markdown-table

    DownloadsWeekly Downloads

    672

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    16.1 kB

    Total Files

    15

    Last publish

    Collaborators

    • avatar