Files
pnpm/packages/cli-utils/src/style.ts
2020-08-24 02:01:25 +03:00

30 lines
542 B
TypeScript

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