An array of objects representing the rows of the table. Each object should have string keys.
Optionaloptions: { maxColumnWidth?: number; minColumnWidth?: number; typesRowIndex?: number }
Optional configuration for table rendering.
OptionalmaxColumnWidth?: numberThe maximum width for any column (default: 75). Values exceeding this width will be wrapped at word boundaries.
OptionalminColumnWidth?: numberThe minimum width for any column (default: 3).
OptionaltypesRowIndex?: numberThe index of a row that contains type annotations (e.g. "VARCHAR/string"). This row will be rendered in grey. If omitted, no row is treated as a types row.
void - The table is printed directly to the console.
Prints a formatted table to the console with support for word wrapping within cells. Unlike console.table(), this function properly handles multi-line content within cells, making it ideal for displaying data with long text values.
This function has been created for the simple-data-analysis library, but can be used independently for any array of objects.