You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is what is throwing people off. A large portion of our tickets (and things I see on StackOverflow) are people misunderstanding how to use chalk. I think they expect chalk.red("hello") to output something.
The readme states Here without console.log for purity. which a lot of people miss (even though there's a usage block right above it). It might be worthwhile to just include console.log (or even var log = console.log; log(...)) in there to illustrate that chalk only returns strings with escape sequences, nothing more.
Just a thought.
The text was updated successfully, but these errors were encountered:
I think this is what is throwing people off. A large portion of our tickets (and things I see on StackOverflow) are people misunderstanding how to use chalk. I think they expect
chalk.red("hello")
to output something.The readme states
Here without console.log for purity.
which a lot of people miss (even though there's a usage block right above it). It might be worthwhile to just includeconsole.log
(or evenvar log = console.log; log(...)
) in there to illustrate that chalk only returns strings with escape sequences, nothing more.Just a thought.
The text was updated successfully, but these errors were encountered: