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

std/node/stream.ts>Transform

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

Transform streams are Duplex streams where the output is in some way related to the input. Like all Duplex streams, Transform streams implement both the Readable and Writable interfaces.

Examples of Transform streams include:

  • zlib streams
  • crypto streams

Constructors

new
Transform(opts?: TransformOptions)

Methods

_flush(callback: TransformCallback): void
_transform(
chunk: any,
encoding: BufferEncoding,
callback: TransformCallback,
): void