跳到主要内容

Function: decodeStream()

decodeStream(options, cb): Writable

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

options: DecodeStreamOptions

The options to pass to Cheerio.

cb

The callback to call when the stream is finished.

Returns

Writable

The writable stream.

Defined in

src/index.ts:160