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

39 lines (38 loc) 1.14 kB
import { FormatFn } from "./colors"; export declare class TextColor { private readonly formatFns; static get builder(): TextColor; build: () => TextColor & FormatFn; applyFormatting: (input: string) => string; toString: () => string; get stripColors(): TextColor; get black(): TextColor; get red(): TextColor; get green(): TextColor; get yellow(): TextColor; get blue(): TextColor; get magenta(): TextColor; get cyan(): TextColor; get white(): TextColor; get gray(): TextColor; get grey(): TextColor; get bgBlack(): TextColor; get bgRed(): TextColor; get bgGreen(): TextColor; get bgYellow(): TextColor; get bgBlue(): TextColor; get bgMagenta(): TextColor; get bgCyan(): TextColor; get bgWhite(): TextColor; get reset(): TextColor; get bold(): TextColor; get dim(): TextColor; get italic(): TextColor; get underline(): TextColor; get inverse(): TextColor; get hidden(): TextColor; get strikethrough(): TextColor; get rainbow(): TextColor; get redwhiteblue(): TextColor; get randomFgColor(): TextColor; }