← All repos

ansi-styles

ANSI escape codes for styling strings in the terminal

chalk
Browse cluster: Terminal & CLI Output Styling
119commits
22contributors
2languages

Tech stack & purpose

ansi-styles is a JavaScript library that provides ANSI escape codes for styling strings in the terminal, enabling developers to add colors, text modifiers, and other visual effects to terminal output. The project operates in the developer tooling domain, specifically for terminal/CLI styling, and is built with JavaScript for use in Node.js environments. It supports multiple color formats including 16-color, 256-color, and truecolor (16 million colors), with conversion functions between RGB, hexadecimal, and ANSI color spaces. The project is maintained by Sindre Sorhus and Josh Junon.

Community & reference links

Languages

JavaScript
68.7%
TypeScript
31.3%

Contributors