UNPKG

@oleksiiteplenko/tt

Version:

CLI tool for tracking time on projects.

17 lines (13 loc) 316 B
import Table from 'cli-table3'; type TableArgs = { headers: (string)[]; rows: (string|number)[][]; }; export function printTable({ headers, rows }: TableArgs): void { const table = new Table({ head: headers, style: { head: ['blue'] }, }); table.push(...rows); console.log(table.toString()); }