Polyman Documentation - v3.1.0
    Preparing search index...

    Function colorDisabled

    • Whether ANSI colors must not be printed. True for a non-empty NO_COLOR (see https://no-color.org), for agent mode, and when stdout is not a terminal.

      Parameters

      • env: Env = process.env

        Environment variables to read

      • stdoutIsTTY: boolean = ...

        Whether stdout is a terminal

      Returns boolean

      True when colors must be off

      colorDisabled({ NO_COLOR: '1' }, true); // true