packages/ros-cdk-cli/lib/util/tables.ts (4 lines of code) (raw):

import * as rosDiff from '@alicloud/ros-cdk-template-diff'; export function renderTable(cells: string[][], columns?: number) { // The rosDiff module has logic for terminal-width aware table // formatting (and nice colors), let's just reuse that. return rosDiff.formatTable(cells, columns); }