MasIndexedPairs
Bun

method

zlib.BrotliDecompress.asIndexedPairs

options?: Pick<ArrayOptions, 'signal'>

This method returns a new stream with chunks of the underlying stream paired with a counter in the form [index, chunk]. The first index value is 0 and it increases by 1 for each chunk produced.

@returns

a stream of indexed pairs.