import chalk from 'chalk' export const TABLE_OPTIONS = { border: { topBody: '─', topJoin: '┬', topLeft: '┌', topRight: '┐', bottomBody: '─', bottomJoin: '┴', bottomLeft: '└', bottomRight: '┘', bodyJoin: '│', bodyLeft: '│', bodyRight: '│', joinBody: '─', joinJoin: '┼', joinLeft: '├', joinRight: '┤', }, columns: {}, } type BorderKey = keyof typeof TABLE_OPTIONS['border'] for (const [key, value] of Object.entries(TABLE_OPTIONS.border)) { TABLE_OPTIONS.border[key as BorderKey] = chalk.grey(value) }