Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function print(val, printer) {
val.withStyles = true;
const prettyPrinted = `${styles}\n\n${printer(val)}`;
styles = '';
resetCache();
return prettyPrinted;
}