effect-io-ai

Package: @effect/platform-node-shared
Module: NodeStream

NodeStream.toReadable

Converts an Effect Stream into a Node Readable, using the caller’s Effect context to run the stream and destroying the readable if the stream fails.

Signature

declare const toReadable: <E, R>(stream: Stream.Stream<string | Uint8Array, E, R>) => Effect.Effect<Readable, never, R>

Source

Since v4.0.0