MCPcopy
hub / github.com/Effect-TS/effect / toReadable

Function toReadable

packages/platform-node-shared/src/internal/stream.ts:364–370  ·  view source on GitHub ↗
(
  stream: Stream.Stream<Uint8Array | string, E, R>
)

Source from the content-addressed store, hash-verified

362
363/** @internal */
364export const toReadable = <E, R>(
365 stream: Stream.Stream<Uint8Array | string, E, R>
366): Effect.Effect<Readable, never, R> =>
367 Effect.map(
368 Effect.runtime<R>(),
369 (runtime) => new StreamAdapter(runtime, stream)
370 )
371
372/** @internal */
373export const toReadableNever = <E>(

Callers

nothing calls this directly

Calls 2

runtimeMethod · 0.80
mapMethod · 0.65

Tested by

no test coverage detected