supports-color
Detect whether a terminal supports color
$
npm install supports-colorOfficial 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.
More in npm packages
All 9,484-
commander the complete solution for node.js command-line programs
-
ms Tiny millisecond conversion utility
-
string-width Get the visual width of a string - the number of columns required to display it
-
strip-ansi Strip ANSI escape codes from a string
-
ansi-regex Regular expression for matching ANSI escape codes
-
picomatch Blazing fast and accurate glob matcher written in JavaScript, with no dependencies and full support for standard and extended Bash glob feat
-
chalk Terminal string styling done right
-
wrap-ansi Wordwrap a string with ANSI escape codes
-
tslib Runtime library for TypeScript helper functions
-
emoji-regex A regular expression to match all Emoji-only symbols as per the Unicode Standard.
-
balanced-match Match balanced character pairs, like "{" and "}"
-
eslint-visitor-keys Constants and utilities about visitor keys to traverse AST.