UNPKG

isoscribe

Version:

An isomorphic logging utility for any JavaScript runtime, providing structured, styled, and extensible logs.

31 lines (30 loc) 988 B
declare const ANSI_COLORS: { readonly black: "\u001B[30m"; readonly red: "\u001B[31m"; readonly green: "\u001B[32m"; readonly yellow: "\u001B[33m"; readonly blue: "\u001B[34m"; readonly magenta: "\u001B[35m"; readonly cyan: "\u001B[36m"; readonly white: "\u001B[37m"; readonly gray: "\u001B[90m"; readonly redBright: "\u001B[91m"; readonly greenBright: "\u001B[92m"; readonly yellowBright: "\u001B[93m"; readonly blueBright: "\u001B[94m"; readonly magentaBright: "\u001B[95m"; readonly cyanBright: "\u001B[96m"; readonly whiteBright: "\u001B[97m"; }; declare const ANSI_STYLES: { readonly bold: "\u001B[1m"; readonly underline: "\u001B[4m"; readonly bg: "\u001B[7m"; }; type Colors = keyof typeof ANSI_COLORS; type Styles = keyof typeof ANSI_STYLES; type ColorizerInstance = { [key in Colors | Styles]: ColorizerInstance; } & ((text: string) => string); export declare const c: ColorizerInstance; export {};