• Pipe a readable stream through a transformer. Returns a result, where result.readable is the readable end of the TransformStream and result.done is a promise that fulfills or rejects once the stream is done. Includes a shim for environments where TransformStream is not available.

    Parameters

    • sourceReadable: ReadableStream
    • transformer: Transformer

    Returns { done: Promise<unknown>; readable: ReadableStream }