UNPKG

@push.rocks/consolecolor

Version:

A module for applying color styles to console output.

14 lines (13 loc) 427 B
/** * all the color names that are available for proper xterm translation */ export type TColorName = 'black' | 'blue' | 'brown' | 'cyan' | 'green' | 'orange' | 'pink' | 'red' | 'white'; export interface IRGB { r: number; b: number; g: number; } /** * color a string for the terminal */ export declare let coloredString: (stringArg: string, colorFontArg: TColorName, colorBackgroundArg?: TColorName) => string;