csv-to-markdown-table
Version:
JavaScript/Node.js Csv to Markdown Table Converter
10 lines (9 loc) • 399 B
TypeScript
/**
* Converts CSV to Markdown Table
*
* @param {string} csvContent - The string content of the CSV
* @param {string} delimiter - The character(s) to use as the CSV column delimiter
* @param {boolean} hasHeader - Whether to use the first row of Data as headers
* @returns {string}
*/
export default function csvToMarkdown(csvContent: string, delimiter?: string, hasHeader?: boolean): string;