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
| Parameter | Type | Description |
|---|---|---|
options | DecodeStreamOptions | The options to pass to Cheerio. |
cb | (err, $) => void | The callback to call when the stream is finished. |
Returns
Writable
The writable stream.