UNPKG

pintor

Version:

Zero-dependency library for providing color functions for terminal text

17 lines (16 loc) 577 B
import ansiStyles, { AnsiStyle } from './ansi-styles'; import { shouldEnableColors } from './color-support'; type StyleFunction = (...args: (string | number | boolean)[]) => string; type ColorFunction = StyleFunction & { [key: string]: StyleFunction; }; type ColorsObject = { styles: Record<string, AnsiStyle>; } & { [K in keyof typeof ansiStyles]: ColorFunction; }; declare const colors: ColorsObject; export declare const supportsColor: typeof shouldEnableColors; export declare const stdout: boolean; export declare const stderr: boolean; export default colors;