Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const color = (clr: string | undefined, message: string): string => {
switch (clr) {
case 'brightblue':
return blueBright(message);
case 'brightred':
return redBright(message);
case 'red':
return red(message);
case 'green':
return green(message);
case 'yellow':
return yellow(message);
default:
return message;
}
};