Extra Credit

supports-color

Detect whether a terminal supports color

$npm install supports-color

Official docs outline

Extra Credit builds an outline of supports-color's docs the first time your work uses it. Until then, start at the official documentation.

All 9,484