Enable or disable text color when styling.
@std/fmt/colors automatically detects NO_COLOR environmental variable and disables text color. Use this API only when the automatic detection doesn't work.
@std/fmt/colors
The boolean value to enable or disable text color
import { setColorEnabled } from "@std/fmt/colors";// Disable text colorsetColorEnabled(false);// Enable text colorsetColorEnabled(true); Copy
import { setColorEnabled } from "@std/fmt/colors";// Disable text colorsetColorEnabled(false);// Enable text colorsetColorEnabled(true);
Enable or disable text color when styling.
@std/fmt/colorsautomatically detects NO_COLOR environmental variable and disables text color. Use this API only when the automatic detection doesn't work.