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

std/node/stream.ts

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
import * as mod from "https://deno.land/std@0.92.0/node/stream.ts";

Classes

A duplex is an implementation of a stream that has both Readable and Writable attributes and capabilities

A bit simpler than readable streams. Implement an async ._write(chunk, encoding, cb), and it'll handle all the drain event emission and buffering.

Functions

Appends an ending callback triggered when a stream is no longer readable, writable or has experienced an error or a premature close event