bgRed

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

function

function bgRed(str: string): string

Set background color to red.

str: string

The text to make its background red

Returns

The text with red background

Example: Usage

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

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

Source