Files
node/lib
Ruben Bridgewater d4fdec6b65 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-03-05 18:37:39 +01:00
..
2019-03-05 18:37:39 +01:00
2019-03-04 10:27:50 -08:00
2019-03-05 02:04:32 +01:00
2018-11-20 10:42:31 -08:00
2019-02-01 19:06:58 -08:00
2019-03-01 14:55:33 +01:00
2019-03-01 15:59:58 +01:00
2019-03-05 18:37:39 +01:00
2019-02-03 20:40:16 +01:00
2019-03-04 00:13:40 +01:00