( input: string | Uint8Array | Stream.Stream<Uint8Array, PlatformError>, )
| 110 | }) |
| 111 | |
| 112 | const normalizeStdin = ( |
| 113 | input: string | Uint8Array | Stream.Stream<Uint8Array, PlatformError>, |
| 114 | ): Stream.Stream<Uint8Array, PlatformError> => |
| 115 | typeof input === "string" |
| 116 | ? Stream.make(new TextEncoder().encode(input)) |
| 117 | : input instanceof Uint8Array |
| 118 | ? Stream.make(input) |
| 119 | : input |
| 120 | |
| 121 | export const collectStream = (stream: Stream.Stream<Uint8Array, PlatformError>, maxOutputBytes: number | undefined) => |
| 122 | Stream.runFold( |