Apply color to text. Accepts either a VT100 escape code constant (e.g., FG_RED) or a named color string (e.g., 'red').
The text to colorize
Either a VT100 escape code or a named color ('red', 'green', 'yellow', 'blue', 'cyan', 'magenta', 'white', 'black', or 'bright' variants)
The text wrapped with the color escape codes
// Using VT100 constantscolorize('Error', FG_RED) Copy
// Using VT100 constantscolorize('Error', FG_RED)
// Using named colorscolorize('Success', 'green') Copy
// Using named colorscolorize('Success', 'green')
Apply color to text. Accepts either a VT100 escape code constant (e.g., FG_RED) or a named color string (e.g., 'red').