Cli.formatTable method
Cli › formatTable
Unofficial
Format data as a table in JSON, CSV, or TSV format.Signature:
formatTable(headers: string[], rows: string[][], format: "csv" | "json" | "tsv"): stringParameters:
| Parameter | Type | Description |
|---|---|---|
| headers | string[] | Column header names. |
| rows | string[][] | Row data as arrays of strings. |
| format | "csv" | "json" | "tsv" | Output format. |
Returns: string — The formatted table string.