CreateStylesOptions

View Source

Summary

Options used to create terminal style helpers.

Signature

interface CreateStylesOptions {
  colors?: boolean;
  env?: TerminalEnvironment;
  stream?: { isTTY?: boolean };
}

Properties

colors

Explicitly enables or disables ANSI styles instead of using automatic color detection.

env

Environment variables used for color detection (defaults to process.env).

stream

Output stream whose TTY support should be used for color detection (defaults to process.stdout).