UNPKG

tezx

Version:

TezX is a modern, ultra-lightweight, and high-performance JavaScript framework built specifically for Bun. It provides a minimal yet powerful API, seamless environment management, and a high-concurrency HTTP engine for building fast, scalable web applicat

13 lines (12 loc) 425 B
import { COLORS } from "./colors.js"; export const loggerOutput = (level, message, ...args) => { const LEVEL_COLORS = { info: COLORS.blue, warn: COLORS.yellow, error: COLORS.red, debug: COLORS.cyan, success: COLORS.green, }; const levelText = `${LEVEL_COLORS[level]}[${level.toUpperCase()}]${COLORS.reset}`; console.log(` ${levelText} ${message}`, ...args?.flat()); };