strikethrough

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

function

function strikethrough(str: string): string

Put horizontal line through the center of the text.

str: string

The text to strike through

Returns

The text with horizontal line through the center

Example: Usage

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

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

Source