Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/earthstar/src/util/streams.ts>streamToBytes

Earthstar is a tool for private, undiscoverable, offline-first networks.
Go to Latest
function streamToBytes
import { streamToBytes } from "https://deno.land/x/earthstar@v10.0.0-alpha.4/src/util/streams.ts";

Parameters

stream: ReadableStream<Uint8Array>

Returns

Promise<Uint8Array>