react-native-console-table
Version:
Display an array of objects (with the same interface) as a table in the terminal.
55 lines (49 loc) • 1.36 kB
text/typescript
export const signObj = {
rocket: '🚀',
anchor: '⚓️',
money: '💵',
magnet: '🧲',
box: '📦',
list: '📜',
pin: '📌',
lock: '🔒',
clock: '🕒',
lightBulb: '💡'
}
export const tabObj = {
start: ' ',
end: ' '
}
export const selectionTypeObj = {
// Цвета текста в ANSI.
text_red:'31',
text_green: '32',
text_yellow: '33',
text_blue: '34',
text_magenta: '35',
text_cyan: '36',
// Цвета фона в ANSI.
background_white: '7',
background_red: '41',
background_green: '42',
background_yellow: '43',
background_blue: '44',
background_magenta: '45',
background_cyan: '46',
// Тип текста в ANSI, жирный/подчеркнутый.
textStyle_bold: '1',
textStyle_underlined: '4'
}
export const lines = {
horizon: '\u2500', // "─"
vertical: '\u2502', // "│"
angleTopLeft: '\u250c', // "┌"
angleTopRight: '\u2510', // "┐"
angleBottomLeft: '\u2514', // "└"
angleBottomRight: '\u2518', // "┘"
connectionCross: '\u253c', // "┼",
connectionTop: '\u252c', // "┬",
connectionLeft: '\u251c', // "├",
connectionRight: '\u2524', // "┤",
connectionBottom: '\u2534', // "┴",
}