Skip to main content
Module

x/simple_utility/mod.ts>streamDecode

Simplify processing for Deno.
Latest
function streamDecode
Re-export
import { streamDecode } from "https://deno.land/x/simple_utility@v2.1.0/mod.ts";

Convert from stream to binary.

Examples

Example 1

const stream = streamEncode(new Uint8Array([0x00, 0x01, 0x02]));
const data = await streamDecode(stream);

Parameters

stream: ReadableStream<Uint8Array>

Returns

Promise<Uint8Array>