Function red

  • Sets the color of text to be printed to red.

    Disable by setting the NO_COLOR environmental variable.

    Parameters

    • str: string

      Text to make red

    Returns string

    Red text for printing

    import { red } from "@std/internal/styles";

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