Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
interface TransformOptions
implements DuplexOptions
import { type TransformOptions } from "https://deno.land/std@0.156.0/node/_stream.d.ts";

Methods

optional
construct(this: Transform, callback: (error?: Error | null) => void): void
optional
read(this: Transform, size: number): void
optional
write(
this: Transform,
chunk: any,
encoding: BufferEncoding,
callback: (error?: Error | null) => void,
): void
optional
writev(
this: Transform,
chunks: Array<{ chunk: any; encoding: BufferEncoding; }>,
callback: (error?: Error | null) => void,
): void
optional
final(this: Transform, callback: (error?: Error | null) => void): void
optional
destroy(
this: Transform,
error: Error | null,
callback: (error: Error | null) => void,
): void
optional
transform(
this: Transform,
chunk: any,
encoding: BufferEncoding,
callback: TransformCallback,
): void
optional
flush(this: Transform, callback: TransformCallback): void