Skip to main content
internal.PassThrough - stream - Node documentation
class internal.PassThrough
extends Transform

Usage in Deno

import { internal } from "node:stream";
const { PassThrough } = internal;

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.