dim

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

function

function dim(str: string): string

The text emits only a small amount of light.

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

str: string

The text to dim

Returns

The dimmed text

Example: Usage

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

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

Source