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
Thus far, I found an okay-ish way with use but couldn't figure out how to get those functions to know when not to use log (but the execution goes from inside out so the parent callee functions wouldn't know if it was first called with fellow functions).
What about having each function assume they are nested so return the coloured data without logging anything then if there are no further levels in the call stack it will be logged.
The potential problem with that is that it will rely on a function that will, at a later stage (before the whole statement is completely read) know what needs to be passed to a log and what doesn't need to.
Proposal
Being able to nest log functions.
Motivation
This would make it possible to use several styles in one log without having to use
colors
/chalk
.Use cases and examples
The text was updated successfully, but these errors were encountered: