UNPKG

@pbrgld/loggify

Version:

A lightweight, dependency-free logging library for Bun.js and Node.js – featuring emoji support, styled output, contextual logging, and high-performance stdout logging.

37 lines (36 loc) 888 B
/** * Ansi Codes (asset file) * The asset files are introduced to seperate the static information from code logic. */ export const ansiCodes = { // Colors black: '\x1b[30m', red: '\x1b[31m', green: '\x1b[32m', yellow: '\x1b[33m', blue: '\x1b[34m', magenta: '\x1b[35m', cyan: '\x1b[36m', white: '\x1b[37m', // Bright colors brightBlack: '\x1b[90m', brightRed: '\x1b[91m', brightGreen: '\x1b[92m', brightYellow: '\x1b[93m', brightBlue: '\x1b[94m', brightMagenta: '\x1b[95m', brightCyan: '\x1b[96m', brightWhite: '\x1b[97m', // Additional colors orange: '\x1b[38;5;208m', gray: '\x1b[90m', // Special options reset: '\x1b[0m', bold: '\x1b[1m', dim: '\x1b[2m', italic: '\x1b[3m', underline: '\x1b[4m', inverse: '\x1b[7m', hidden: '\x1b[8m', strikethrough: '\x1b[9m' };