Function transformSafely

  • Transforms a stream, ensuring that all errors are forwarded.

    Type Parameters

    • T = any

    Parameters

    • source: ReadableStream

      The stream to be transformed

    • options: AsyncTransformOptions<T> = {}

      The transformation options

    Returns Guarded<Transform>

    The transformed stream