Skip to content

Documentation / listr2 / ProcessOutputBuffer

Class: ProcessOutputBuffer

Constructors

new ProcessOutputBuffer()

new ProcessOutputBuffer(options?): ProcessOutputBuffer

Parameters

options?: ProcessOutputBufferOptions

Returns

ProcessOutputBuffer

Source

packages/listr2/src/utils/process-output/process-output-buffer.ts:9

Properties

buffer

private buffer: ProcessOutputBufferEntry[] = []

Source

packages/listr2/src/utils/process-output/process-output-buffer.ts:6


decoder

private readonly decoder: StringDecoder

Source

packages/listr2/src/utils/process-output/process-output-buffer.ts:7


options?

private optional readonly options: ProcessOutputBufferOptions

Source

packages/listr2/src/utils/process-output/process-output-buffer.ts:9

Accessors

all

get all(): ProcessOutputBufferEntry[]

Returns

ProcessOutputBufferEntry[]

Source

packages/listr2/src/utils/process-output/process-output-buffer.ts:11


last

get last(): ProcessOutputBufferEntry

Returns

ProcessOutputBufferEntry

Source

packages/listr2/src/utils/process-output/process-output-buffer.ts:15


length

get length(): number

Returns

number

Source

packages/listr2/src/utils/process-output/process-output-buffer.ts:19

Methods

write()

write(data, ...args): boolean

Parameters

data: string | Uint8Array

• ...args: [string?, Function?] | [Function?]

Returns

boolean

Source

packages/listr2/src/utils/process-output/process-output-buffer.ts:23


reset()

reset(): void

Returns

void

Source

packages/listr2/src/utils/process-output/process-output-buffer.ts:43