Kolorist: Terminal Colorization Utility
JSON →Kolorist is a minimal utility library for Node.js environments, designed to apply ANSI escape codes to strings for colored console output. The current stable version, 1.8.0, includes support for 24-bit TrueColor detection, which automatically falls back to Ansi 256 for terminals that lack full TrueColor support, such as the built-in macOS Terminal.app. The library maintains an active release cadence, focusing on minor enhancements and bug fixes like improved handling of `NO_COLOR` and `FORCE_COLOR` environment variables and better module resolution compatibility. Its key differentiators include a tiny footprint, direct focus on standard I/O coloring without unnecessary abstractions, and robust detection of terminal capabilities to ensure appropriate color rendering or disablement. Kolorist ships with TypeScript types, making it well-suited for modern JavaScript and TypeScript projects.
Traffic · last 30 days ↑67% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇳🇴 Norway · 🇩🇪 Germany