Function bgBlack

  • Set background color to black.

    Parameters

    • str: string

      The text to make its background black

    Returns string

    The text with black background

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

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