mirror of
https://github.com/pnpm/pnpm.git
synced 2025-12-27 00:58:11 -05:00
32 lines
604 B
TypeScript
32 lines
604 B
TypeScript
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)
|
|
}
|