Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const formatError = (duration: string, packageName: string, content: string) => {
const text = indentedBox(chalk`{white.bgRed > ERROR <}\n\n${content}`, {
padding: 1,
borderColor: 'red',
borderStyle: BorderStyle.Double
});
return `${duration}${packageName}\n${text}`;
};