• Subscribe to chunks in the stream, immediately passing any chunks on to the pipe.

    Type Parameters

    • T

    Parameters

    • fn: ((chunk) => unknown)
        • (chunk): unknown
        • Parameters

          • chunk: T

          Returns unknown

    Returns TransformStream<T, T>

    Example

    --1--2--3--4--5--6--

    tap(chunk => console.info(x))

    --1--2--3--4--5--6--

Generated using TypeDoc