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

x/proc/legacy/examples/deps.ts>readerToBytes

A better way to work with processes in Deno.
Go to Latest
function readerToBytes
import { readerToBytes } from "https://deno.land/x/proc@0.20.37/legacy/examples/deps.ts";

Efficiently transform a Reader to an AsyncIterableIterator<Uint8Array>.

Parameters

reader: Deno.Reader & Deno.Closer

The reader.

optional
bufSize = [UNSUPPORTED]

The buffer size.

Returns

AsyncIterableIterator<Uint8Array>