@std/streams
Обзор
Утилиты для работы с API потоков.
Включает буферизацию и преобразование.
import { toText } from "@std/streams";
import { assertEquals } from "@std/assert";
const stream = ReadableStream.from(["Hello, world!"]);
const text = await toText(stream);
assertEquals(text, "Hello, world!");
Добавление в проект
›_
deno add jsr:@std/streams
© 2018–2025 the Deno authors
Licensed under the MIT License.
https://docs.deno.com/runtime/reference/std/streams