Skip to content
Type

StreamTargetOptions

Options for StreamTarget.

ts
type StreamTargetOptions = {
	chunked?: boolean;
	chunkSize?: number;
};

Used by

Properties

chunked

ts
chunked?: boolean;

When setting this to true, data created by the output will first be accumulated and only written out once it has reached sufficient size, using a default chunk size of 16 MiB. This is useful for reducing the total amount of writes, at the cost of latency.

chunkSize

ts
chunkSize?: number;

When using chunked: true, this specifies the maximum size of each chunk. Defaults to 16 MiB.

Released under the Mozilla Public License 2.0.