Skip to main content
Module

std/node/_stream.d.ts>PassThrough

Deno standard library
Go to Latest
class PassThrough
extends Transform
import { PassThrough } from "https://deno.land/std@0.145.0/node/_stream.d.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 wherestream.PassThrough is useful as a building block for novel sorts of streams.