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

std/node/stream.ts>PassThrough

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
class PassThrough
extends Transform
Re-export
import { PassThrough } from "https://deno.land/std@0.177.0/node/stream.ts";

The stream.PassThrough class is a trivial implementation of a Transform stream that simply passes the input bytes across to the output. Its purpose is primarily for examples and testing, but there are some use cases where stream.PassThrough is useful as a building block for novel sorts of streams.