{"repo":"haltcase/tablemark","free":true,"listed":false,"github":"https://github.com/haltcase/tablemark","clone":"git clone https://github.com/haltcase/tablemark.git","description":"Generate markdown tables from JSON data.","language":"TypeScript","stars":98,"topics":["json","array","table","markdown","convert","generate","json-data","hacktoberfest","typescript"],"license":"MIT","category":"productivity","readme_excerpt":"tablemark &middot; Generate markdown tables from JSON data. Render arrays of objects as markdown tables, with configurable fancy output. - Rename table headers and transform cell content - Align columns to the left, center, or right (all columns or per column) - Customize text casing for column headers (using [ change-case ]) - Auto-detect and handle ANSI styles and Unicode characters - Wrap or truncate long cell contents or strip line breaks Installation Usage ... displays as: Name Age Is cool :---- :---- :------ Bob 21 false Sarah 22 true Lee 23 true API Arguments - InputData input: the data to table-ify as an array or iterable of objects - Note that nested objects are not supported. Use options.toCellText to customize how nested objects and other non-string values are output. - TablemarkOptions options: key type default description :----------------------: :------------------------------------------: :--------------: -------------------------------------------------------------------------------------------------- align \"left\" \\ \"center\" \\ \"right\" \"left\" Horizontal alignment to use for all columns. columns Array - Array of column descriptors. countAnsiEscapeCodes boolean false Whether to count ANSI escape codes when calculating string width. headerCase \"preserve\" \\ ... \"sentenceCase\" Casing to use for headers derived from input object keys (read more). lineBreakStrategy \"preserve\" \\ \"strip\" \\ \"truncate\" \"preserve\" What to do when cell content contains line breaks. lineEndi","default_branch":null,"files":null,"tree":[],"storefront":"/r/haltcase","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/haltcase/tablemark/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}