@artiq/stylize
Version:
Lightweight terminal text stylizer with ANSI, RGB, HEX colors, multiple styling modes, and chainable proxy API.
18 lines (16 loc) • 321 B
JavaScript
/**
* ANSI foreground color codes for standard terminal colors.
*
* Maps color names to their respective ANSI escape code values (30–37).
*/
const fgColorCodes = {
black: '30',
red: '31',
green: '32',
yellow: '33',
blue: '34',
magenta: '35',
cyan: '36',
white: '37'
};
export default fgColorCodes;