Function bgGreen

  • Set background color to green.

    Parameters

    • str: string

      The text to make its background green

    Returns string

    The text with green background

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

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