inverse

import { inverse } from "jsr:@ende/fmt/colors";

function

function inverse(str: string): string

Invert background color and text color.

str: string

The text to invert its color

Returns

The inverted text

Example: Usage

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

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

Source