chalk/supports-color

What is wrong with the native `writeStream.getColorDepth`? #108

avisek posted onGitHub


It didn't exist until recently and IIRC I've had some concerns with it.

posted by Qix- almost 5 years ago

It was also adapted from this package.

We don’t plan to use it as the benefit of this package is that the logic is stable across Node.js versions.

posted by sindresorhus almost 5 years ago

I just discovered one limitation… process.stdout.hasColors (or process.stdout.getColorDepth) is not always defined. For example, a spawned child process that is not a TTY will not have those methods on process.stdout or process.stderr.

posted by jaydenseric over 4 years ago

Fund this Issue

$0.00
Funded

Pull requests