Files
node/doc/api
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-01-28 21:54:52 -08:00
2018-08-07 08:53:33 +02:00
2019-04-17 00:15:11 +01:00
2018-11-29 11:39:17 -05:00
2019-04-16 22:04:47 +01:00
2018-12-26 11:18:57 -05:00
2018-07-15 19:02:29 +02:00
2019-04-08 17:10:23 +01:00
2018-11-29 11:39:18 -05:00
2018-07-15 19:02:29 +02:00
2019-04-17 00:15:13 +01:00
2019-03-14 14:22:18 +00:00