Function inverse

  • Invert background color and text color.

    Parameters

    • str: string

      The text to invert its color

    Returns string

    The inverted text

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

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