<T>(data: T, formatters: OutputFormatters<T>, options: OutputOptions): Promise<void> Formats data and outputs to file or stdout based on options.
Supports three formats: - stdout: Uses logger for colored/styled output (cannot use with --outfile) - json: Stringified JSON - markdown: Formatted markdown text
data
type
Tformatters
type
OutputFormatters<T>options
type OutputOptions
returns
Promise<void> throws
if- stdout format used with outfile, or if logger missing for stdout