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

x/dtils/stream.ts>readStreamToFn

The best unofficial library of utilities for Deno applications
Go to Latest
function readStreamToFn
import { readStreamToFn } from "https://deno.land/x/dtils@2.0.0/stream.ts";

Parameters

stream: ReadableStream<T>
fn: (data: T) => void