Closed peterpham closed 2 years ago
Hi there! You can do this with any function in a tidy flow just by making it conditional. Tidy will ignore all falsy values in the flow. e.g.
const _DEBUG = false;
tidy(data,
_DEBUG && debug("info label", {limit: 15})
);
// or
tidy(data,
_DEBUG ? debug("info label", {limit: 15}) : null
);
Feature Request
Able to turn on/off debug depending when needed. For example: I want to suppress debug on production but show it on staging
For example: