Function bgRed

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

    Parameters

    • str: string

      Text to make its background red

    Returns string

    Red background text for print

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

    console.log(bgRed("Hello, world!")); // Prints "Hello, world!" with red background