Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/proc/src/transformers.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.22/src/transformers.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.