import { toText } from "https://deno.land/x/fathym_eac_runtime@v0.0.140/src/src.deps.ts";
Converts a ReadableSteam
of strings or Uint8Array
s
to a single string. Works the same as Response.text
.
Examples
Example 1
Example 1
import { toText } from "https://deno.land/std@0.224.0/streams/to_text.ts";
const stream = ReadableStream.from(["Hello, ", "world!"]);
await toText(stream); // "Hello, world!"
Parameters
readableStream: ReadableStream