UNPKG

aahook

Version:

A CLI tool that displays ASCII art when commands succeed or fail

26 lines 765 B
/** * ANSI color code helper utilities */ import { ColorDefinition } from '../../types/color'; /** * Apply ANSI color codes to text */ export declare function colorize(text: string, color: ColorDefinition): string; /** * Strip ANSI codes from text */ export declare function stripAnsi(text: string): string; /** * Get terminal color support level * 0 = no color, 1 = basic 16 colors, 2 = 256 colors, 3 = true color */ export declare function getColorSupport(): number; /** * Create a gradient between two colors */ export declare function createGradient(startColor: string, endColor: string, steps: number): string[]; /** * Apply rainbow colors to text */ export declare function rainbow(text: string): string; //# sourceMappingURL=ansi-helper.d.ts.map