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 DuplexOptions
import { type DuplexOptions } from "https://deno.land/std@0.115.1/node/_stream/duplex.ts";

Properties

optional
allowHalfOpen: boolean
optional
autoDestroy: boolean
optional
decodeStrings: boolean
optional
defaultEncoding: Encodings
optional
emitClose: boolean
optional
encoding: Encodings
optional
highWaterMark: number
optional
objectMode: boolean
optional
readable: boolean
optional
readableHighWaterMark: number
optional
readableObjectMode: boolean
optional
writable: boolean
optional
writableCorked: number
optional
writableHighWaterMark: number
optional
writableObjectMode: boolean
optional
writev: writeV

Methods

optional
destroy(
this: Duplex,
error: Error | null,
callback: (error: Error | null) => void,
): void
optional
final(this: Duplex, callback: (error?: Error | null) => void): void
optional
read(this: Duplex, size: number): void
optional
write(
this: Duplex,
chunk: any,
encoding: Encodings,
callback: (error?: Error | null) => void,
): void