{"repo":"gajus/table","free":true,"listed":false,"github":"https://github.com/gajus/table","clone":"git clone https://github.com/gajus/table.git","description":"Formats data into a string table.","language":"TypeScript","stars":973,"topics":["text-table","ascii","cli","ansi"],"license":null,"category":"cli-tools","readme_excerpt":"Table Produces a string that represents array data in a text table. Table Features Install Usage API table createStream getBorderCharacters Features Works with strings containing fullwidth characters. Works with strings containing ANSI escape codes. Configurable border characters. Configurable content alignment per column. Configurable content padding per column. Configurable column width. Text wrapping. Install Usage API table Returns the string in the table format Parameters: - data : The data to display - Type: any[][] - Required: true - config : Table configuration - Type: object - Required: false config.border Type: { [type: string]: string } \\ Default: honeywell template Custom borders. The keys are any of: - topLeft , topRight , topBody , topJoin - bottomLeft , bottomRight , bottomBody , bottomJoin - joinLeft , joinRight , joinBody , joinJoin - bodyLeft , bodyRight , bodyJoin - headerJoin config.drawVerticalLine Type: (lineIndex: number, columnCount: number) = boolean \\ Default: () = true It is used to tell whether to draw a vertical line. This callback is called for each vertical border of the table. If the table has n columns, then the index parameter is alternatively received all numbers in range [0, n] inclusively. config.drawHorizontalLine Type: (lineIndex: number, rowCount: number) = boolean \\ Default: () = true It is used to tell whether to draw a horizontal line. This callback is called for each horizontal border of the table. If the table has n rows, then the ","default_branch":null,"files":null,"tree":[],"storefront":"/r/gajus","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gajus/table/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."}