function magenta
magenta(text: string): string

ANSI magenta text. Call without arguments to chain: magenta().bold(text).

magenta('qunitx'); // '\x1b[35mqunitx\x1b[39m' when color is enabled; 'qunitx' otherwise
magenta().bold('qunitx'); // bold magenta via the chain form

Parameters

text: string

Return Type

string
magenta(): MagentaReturn

ANSI magenta text. Call without arguments to chain: magenta().bold(text).

Return Type

Usage

import { magenta } from "lib/utils/color.ts";