Function strikethrough

  • Put horizontal line through the center of the text.

    Parameters

    • str: string

      The text to strike through

    Returns string

    The text with horizontal line through the center

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

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