UNPKG

@ghini/kit

Version:

js practical tools to assist efficient development

49 lines (43 loc) 2.2 kB
export const reset = "\x1b[0m"; // 重置所有样式 export const bold = "\x1b[1m"; // 加粗 export const dim = "\x1b[2m"; // 暗淡 export const underline = "\x1b[4m"; // 下划线 export const blink = "\x1b[5m"; // 闪烁 export const reverse = "\x1b[7m"; // 反显 export const hidden = "\x1b[8m"; // 隐藏 // 前景色(字体颜色) export const black = "\x1b[30m"; // 黑色(灰色) export const red = "\x1b[31m"; // 红色 export const green = "\x1b[32m"; // 绿色 export const yellow = "\x1b[33m"; // 黄色 export const blue = "\x1b[34m"; // 蓝色 export const magenta = "\x1b[35m"; // 洋红色(暗红) export const cyan = "\x1b[36m"; // 青色(暗绿) export const white = "\x1b[37m"; // 白色 // 明亮的前景色(字体颜色) export const brightBlack = "\x1b[90m"; // 浅灰色 export const brightRed = "\x1b[91m"; // 明亮的红色 export const brightGreen = "\x1b[92m"; // 明亮的绿色 export const brightYellow = "\x1b[93m"; // 明亮的黄色 export const brightBlue = "\x1b[94m"; // 明亮的蓝色 export const brightMagenta = "\x1b[95m"; // 明亮的洋红色 export const brightCyan = "\x1b[96m"; // 明亮的青色 export const brightWhite = "\x1b[97m"; // 明亮的白色 // 背景色 export const bgBlack = "\x1b[40m"; // 黑色背景 export const bgRed = "\x1b[41m"; // 红色背景 export const bgGreen = "\x1b[42m"; // 绿色背景 export const bgYellow = "\x1b[43m"; // 黄色背景 export const bgBlue = "\x1b[44m"; // 蓝色背景 export const bgMagenta = "\x1b[45m"; // 洋红色背景 export const bgCyan = "\x1b[46m"; // 青色背景 export const bgWhite = "\x1b[47m"; // 白色背景 // 明亮的背景色 export const bgBrightBlack = "\x1b[100m"; // 明亮的黑色背景 export const bgBrightRed = "\x1b[101m"; // 明亮的红色背景 export const bgBrightGreen = "\x1b[102m"; // 明亮的绿色背景 export const bgBrightYellow = "\x1b[103m"; // 明亮的黄色背景 export const bgBrightBlue = "\x1b[104m"; // 明亮的蓝色背景 export const bgBrightMagenta = "\x1b[105m"; // 明亮的洋红色背景 export const bgBrightCyan = "\x1b[106m"; // 明亮的青色背景 export const bgBrightWhite = "\x1b[107m"; // 明亮的白色背景