mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 14:25:02 +00:00
19 lines
655 B
TypeScript
19 lines
655 B
TypeScript
export const COLORS = {
|
||
reset: '\x1b[0m',
|
||
bright: '\x1b[1m',
|
||
red: '\x1b[31m',
|
||
green: '\x1b[32m',
|
||
yellow: '\x1b[33m',
|
||
blue: '\x1b[34m',
|
||
magenta: '\x1b[35m',
|
||
cyan: '\x1b[36m',
|
||
} as const
|
||
|
||
export const log = {
|
||
info: (msg: string) => console.log(`${COLORS.blue}ℹ${COLORS.reset} ${msg}`),
|
||
success: (msg: string) => console.log(`${COLORS.green}✓${COLORS.reset} ${msg}`),
|
||
warn: (msg: string) => console.log(`${COLORS.yellow}⚠${COLORS.reset} ${msg}`),
|
||
error: (msg: string) => console.log(`${COLORS.red}✗${COLORS.reset} ${msg}`),
|
||
section: (msg: string) => console.log(`\n${COLORS.bright}${COLORS.cyan}${msg}${COLORS.reset}\n`),
|
||
}
|