supports-color
Use supports-color 11.0.0 to detect terminal color capability in Node.js scripts, including stdout/stderr detection and custom stream detection.
A skill is written against one major of its package, because a major is where the shape changes. Pick the line that matches your lockfile.
| Line | For | Verified |
|---|---|---|
| 11.x | supports-color@11.0.0 |
2026-09-08, 3 examples |