How to use the colorette.blueBright function in colorette

To help you get started, we’ve selected a few colorette examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ludicrousxyz / light / src / cli / utils / log.ts View on Github external
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;
  }
};