- captureOutput(fn, options?): Promise<Buffer>
Parameters
fn: (() => void | Promise<void>)
- (): void | Promise<void>
Returns void | Promise<void>
Optional
options: {
stderr?: boolean;
stdout?: boolean;
}
Optional
stderr?: boolean
Optional
stdout?: boolean
Returns Promise<Buffer>
Capture STDOUT/STDERR output.