supports-color

popular esm
Detect whether a terminal supports color
Version 10.0.0 License MIT
Keywords
colorcolourcolorsterminalconsolecliansistylesttyrgb256shellxtermcommand-linesupport
<script type="module"> import supportsColor from 'https://cdn.jsdelivr.net/npm/supports-color@10.0.0/+esm' </script>