Function bold

  • Sets the style of text to be printed to bold.

    Disable by setting the NO_COLOR environmental variable.

    Parameters

    • str: string

      Text to make bold

    Returns string

    Bold text for printing

    import { bold } from "@std/internal/styles";

    console.log(bold("Hello, world!")); // Prints "Hello, world!" in bold