UNPKG

nhb-toolbox

Version:

A versatile collection of smart, efficient, and reusable utility functions, classes and types for everyday development needs.

91 lines (90 loc) 2.94 kB
/** ANSI styles for non-color text effects */ export declare const ANSI_TEXT_STYLES: Readonly<{ bold: [string, string]; bolder: [string, string]; dim: [string, string]; italic: [string, string]; underline: [string, string]; strikethrough: [string, string]; inverse: [string, string]; }>; /** Browser CSS equivalents */ export declare const CSS_TEXT_STYLES: Readonly<{ bold: string; bolder: string; dim: string; italic: string; underline: string; strikethrough: string; inverse: string; }>; /** Records of ANSI-16 colors with values */ export declare const ANSI_16_COLORS: Readonly<{ readonly black: readonly [30, 39]; readonly red: readonly [31, 39]; readonly green: readonly [32, 39]; readonly yellow: readonly [33, 39]; readonly blue: readonly [34, 39]; readonly purple: readonly [35, 39]; readonly cyan: readonly [36, 39]; readonly white: readonly [37, 39]; readonly blackBright: readonly [90, 39]; readonly redBright: readonly [91, 39]; readonly greenBright: readonly [92, 39]; readonly yellowBright: readonly [93, 39]; readonly blueBright: readonly [94, 39]; readonly purpleBright: readonly [95, 39]; readonly cyanBright: readonly [96, 39]; readonly whiteBright: readonly [97, 39]; readonly bgBlack: readonly [40, 49]; readonly bgRed: readonly [41, 49]; readonly bgGreen: readonly [42, 49]; readonly bgYellow: readonly [43, 49]; readonly bgBlue: readonly [44, 49]; readonly bgPurple: readonly [45, 49]; readonly bgCyan: readonly [46, 49]; readonly bgWhite: readonly [47, 49]; readonly bgBlackBright: readonly [100, 49]; readonly bgRedBright: readonly [101, 49]; readonly bgGreenBright: readonly [102, 49]; readonly bgYellowBright: readonly [103, 49]; readonly bgBlueBright: readonly [104, 49]; readonly bgPurpleBright: readonly [105, 49]; readonly bgCyanBright: readonly [106, 49]; readonly bgWhiteBright: readonly [107, 49]; }>; /** Browser CSS equivalents for ANSI 16 colors */ export declare const CSS_16_COLORS: Readonly<{ black: "#000000"; red: "#800000"; green: "#008000"; yellow: "#808000"; blue: "#000080"; purple: "#800080"; cyan: "#008080"; white: "#c0c0c0"; blackBright: "#808080"; redBright: "#ff0000"; greenBright: "#00ff00"; yellowBright: "#ffff00"; blueBright: "#0000ff"; purpleBright: "#ff00ff"; cyanBright: "#00ffff"; whiteBright: "#ffffff"; bgBlack: "#000000"; bgRed: "#800000"; bgGreen: "#008000"; bgYellow: "#808000"; bgBlue: "#000080"; bgPurple: "#800080"; bgCyan: "#008080"; bgWhite: "#c0c0c0"; bgBlackBright: "#808080"; bgRedBright: "#ff0000"; bgGreenBright: "#00ff00"; bgYellowBright: "#ffff00"; bgBlueBright: "#0000ff"; bgPurpleBright: "#ff00ff"; bgCyanBright: "#00ffff"; bgWhiteBright: "#ffffff"; }>;