Function red

  • Set text color to red.

    Parameters

    • str: string

      The text to make red

    Returns string

    The red text

    import { red } from "@std/fmt/colors";

    console.log(red("Hello, world!"));