Auto-detect support for `stderr`
See original GitHub issueI want use colors only on console.error
calls which is typically terminal.
I suggest some API extension, very easy idea is chaining like this:
const coloredOutput = chalk.stderr.red('RED ALERT');
This can be used more easily like this:
const chalk = require('chalk').stderr;
const coloredOutput = chalk.red('RED ALERT');
IssueHunt Summary
stroncium has been rewarded.
Backers (Total: $80.00)
- issuehunt ($80.00)
Submitted pull Requests
Tips
- Checkout the Issuehunt explorer to discover more funded issues.
- Need some help from other developers? Add your repositories on IssueHunt to raise funds.
IssueHunt has been backed by the following sponsors. Become a sponsor
Issue Analytics
- State:
- Created 5 years ago
- Comments:17 (8 by maintainers)
Top Results From Across the Web
171836 - Allow subprocesses (renderer etc.) to inherit stderr ...
Currently, stderr isn't inherited because Chrome passes bInheritHandles=0 to CreateProcess(). Just changing this to bInheritHandles=1 isn't secure or robust.
Read more >Create applications - Configuration Manager - Microsoft Learn
Automatically detect application information · General information about the application, like the application Name, Administrator comments, ...
Read more >Docker WSL2 CUDA support: stdout: , stderr: Auto-detected ...
It is not supported in WSL. So the solution for me was as follows: forget about hopes for WSL; install Windows Server with...
Read more >Utilities — Click Documentation (7.x)
Last but not least echo() uses click's intelligent internal output streams to stdout and stderr which support unicode output on the Windows console....
Read more >Console API — Rich 12.6.0 documentation
There are several “standards” for writing color to the terminal which are not all universally supported. Rich will auto-detect the appropriate color system, ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I just published
chalk-stderr
— github — npm — yarn withchalk
andsupports-color
as peer dependencies.Source:
@sindresorhus has rewarded $72.00 to @stroncium. See it on IssueHunt