MCPcopy Create free account
hub / github.com/effect-app/libs / toReadable

Function toReadable

repos/effect/packages/platform-node-shared/src/NodeStream.ts:190–194  ·  view source on GitHub ↗
(stream: Stream.Stream<string | Uint8Array, E, R>)

Source from the content-addressed store, hash-verified

188 * @since 4.0.0
189 */
190export const toReadable = <E, R>(stream: Stream.Stream<string | Uint8Array, E, R>): Effect.Effect<Readable, never, R> =>
191 Effect.map(
192 Effect.context<R>(),
193 (context) => new StreamAdapter(context, stream)
194 )
195
196/**
197 * Converts a service-free Effect `Stream` into a Node `Readable` using an

Callers

nothing calls this directly

Calls 2

mapMethod · 0.65
contextMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…