UNPKG

r3bl-ts-utils

Version:

The `r3bl-ts-utils` package is a set of useful TypeScript functions and classes that can be used in Node.js and browser environments. They are inspired by Kotlin stdlib, and Rust to write code as expressions rather than statements, colorized text, powerfu

33 lines (32 loc) 916 B
export declare type FormatFn = (text: string) => string; export declare namespace colors { const stripColors: FormatFn; const black: FormatFn; const red: FormatFn; const green: FormatFn; const yellow: FormatFn; const blue: FormatFn; const magenta: FormatFn; const cyan: FormatFn; const white: FormatFn; const gray: FormatFn; const grey: FormatFn; const bgBlack: FormatFn; const bgRed: FormatFn; const bgGreen: FormatFn; const bgYellow: FormatFn; const bgBlue: FormatFn; const bgMagenta: FormatFn; const bgCyan: FormatFn; const bgWhite: FormatFn; const reset: FormatFn; const bold: FormatFn; const dim: FormatFn; const italic: FormatFn; const underline: FormatFn; const inverse: FormatFn; const hidden: FormatFn; const strikethrough: FormatFn; const rainbow: FormatFn; const redwhiteblue: FormatFn; }