• Logs a colored message to the console. Uses CSS styling in the browser and ANSI escape codes in Node.js.

    Parameters

    • message: string

      The message to log.

    • color: "black" | "red" | "green" | "yellow" | "blue" | "magenta" | "cyan" | "white"

      The color to apply.

    Returns void