Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/simple_utility/mod.full.ts>streamDecode

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

Convert from stream to binary.

Examples

Example 1

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

Parameters

rs: ReadableStream<Uint8Array>

Returns

Promise<Uint8Array>