Function bgGreen

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

    Parameters

    • str: string

      Text to make its background green

    Returns string

    Green background text for print

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

    console.log(bgGreen("Hello, world!")); // Prints "Hello, world!" with green background