node-console-progress-bar-tqdm
Version:
Progress bar in console for Node.js in the style of TQDM Python library
29 lines (28 loc) • 900 B
TypeScript
export declare const enum ColorType {
Fg = "fg",
Bg = "bg"
}
declare const basicAnsiColorsTable: {
black: string;
red: string;
green: string;
yellow: string;
blue: string;
magenta: string;
cyan: string;
white: string;
};
export type BasicAnsiColorName = keyof typeof basicAnsiColorsTable;
export declare function getTermClearScreen(): string;
export declare function getTermReturnToLineStart(): string;
export declare function getTermColor(name: string, colorType?: ColorType): string;
export declare function getTermColorReset(): string;
export declare function isBasicAnsiColor(x: unknown): x is BasicAnsiColorName;
export declare function is8BitAnsiColor(x: unknown): boolean;
export declare function is24BitAnsiColor(x: unknown): boolean;
export declare function parse24BitColor(color: string): {
r: number;
g: number;
b: number;
};
export {};