Function: decodeStream()

function decodeStream(options, cb): Writable;

Defined in: src/index.ts

Parses a stream of buffers into a document.

The stream is a Writable stream that accepts buffers. When the stream is finished, the callback is called with the loaded document.

Parameters

ParameterTypeDescription
optionsDecodeStreamOptionsThe options to pass to Cheerio.
cb(err, $) => voidThe callback to call when the stream is finished.

Returns

Writable

The writable stream.