Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/proc/mod3.ts>transformerFromTransform

A high-level way to run child processes that is easy, flexible, powerful, and prevents resource leaks.
Go to Latest
function transformerFromTransform
import { transformerFromTransform } from "https://deno.land/x/proc@0.20.23/mod3.ts";

Convert a TransformStream into AsyncIterable. Errors occurring upstream are correctly propagated through the transformation.

Parameters

transform: { writable: WritableStream<R>; readable: ReadableStream<T>; }

Returns

(items: AsyncIterable<R>) => AsyncIterable<T>

A transformer function.