Files
node/doc
Ruben Bridgewater 4285b57e78 tty: add hasColors function
This adds a small wrapper around the `getColorDepth` function to check
if the stream supports at least a specific amount of colors. This is
convenient as the other API is not as straight forward and most use
cases likely only want to know if a specific amount of colors is
supported or not.

PR-URL: https://github.com/nodejs/node/pull/26247
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Weijia Wang <starkwang@126.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
2019-04-17 00:15:13 +01:00
..
2019-04-17 00:15:13 +01:00
2019-04-16 22:57:16 +01:00
2018-06-06 10:33:35 +02:00
2019-02-28 23:37:43 +11:00
2018-10-04 08:21:50 +02:00