Function dim

  • The text emits only a small amount of light.

    Parameters

    • str: string

      The text to dim

    Returns string

    The dimmed text

    Warning: Not all terminal emulators support dim. For compatibility across all terminals, use gray or brightBlack instead.

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

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