docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
The tiniest and the fastest library for terminal output formatting with ANSI colors
Performance
Overall agent performance with this tile
89%
Improvement
Performance improvement when using this tile compared to baseline
↑ 27%
Baseline
Agent performance without this tile
62%
npx @tessl/cli install tessl/npm-picocolors@1.1.0Generated
Agent Claude Code
Scenario 1
Bright foreground color variants (blackBright, redBright, greenBright, yellowBright, blueBright, magentaBright, cyanBright, whiteBright)
Scenario 2
Defensive programming for missing process object
Scenario 3
Factory pattern for zero-overhead color disabling
Scenario 4
Background colors (bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite)
Scenario 5
Basic foreground colors (black, red, green, yellow, blue, magenta, cyan, white, gray)
Scenario 6
Manual color control with createColors(enabled) function
Scenario 7
Non-string input handling (numbers, booleans, null, undefined)
Scenario 8
Close sequence replacement algorithm for proper nesting
Scenario 9
Environment variable support (NO_COLOR, FORCE_COLOR, CI, TERM)
Scenario 10
Platform-specific detection (Windows, Unix/Linux TTY)