f
blue(text: string): string
ANSI blue text.
f
createColors(enabled: boolean)
Creates a set of ANSI color helpers with coloring enabled or disabled.
f
green(text: string): string
ANSI green text.
f
magenta(text?: string): string | MagentaReturn
2 overloads
ANSI magenta text. Call without arguments to chain: magenta().bold(text).
f
red(text: string): string
ANSI red text.
f
yellow(text: string): string
ANSI yellow text.
Usage
import * as mod from "lib/utils/color.ts";