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
Just ran into the use case where it'd be quite useful to have something like chalk.visible(...), where the contents are only emitted if chalk is enabled and has a non-zero level.
This is particularly for borders and whatnot that are purely cosmetic and thus don't need to even appear if chalk is not outputting things.
In the event chalk is disabled, a call to visible() returns an empty string.
Thoughts?
The text was updated successfully, but these errors were encountered:
Just ran into the use case where it'd be quite useful to have something like
chalk.visible(...)
, where the contents are only emitted if chalk is enabled and has a non-zero level.This is particularly for borders and whatnot that are purely cosmetic and thus don't need to even appear if chalk is not outputting things.
In the event chalk is disabled, a call to
visible()
returns an empty string.Thoughts?
The text was updated successfully, but these errors were encountered: