class default
extends Stream
import { default } from "https://dotland.deno.dev/std@0.110.0/node/_stream/duplex.ts";
A duplex is an implementation of a stream that has both Readable and Writable attributes and capabilities
Constructors
new
default(options?: DuplexOptions)Properties
Methods
_destroy(error: Error | null, callback: (error?: Error | null) => void): void
destroy(err?: Error | null, cb?: (error?: Error | null) => void)
end(cb?: () => void): void
end(chunk: any, cb?: () => void): void
on(event: , listener: () => void): this
| "close"
| "end"
| "pause"
| "readable"
| "resume"
on(event: "data", listener: (chunk: any) => void): this
on(event: "error", listener: (err: Error) => void): this
on(event: string | symbol, listener: (...args: any[]) => void): this
on(ev: string | symbol, fn: )
| (() => void)
| ((chunk: any) => void)
| ((err: Error) => void)
| ((...args: any[]) => void)
removeAllListeners(ev: )
| "close"
| "data"
| "end"
| "error"
| "pause"
| "readable"
| "resume"
| symbol
| undefined
removeListener(event: , listener: () => void): this
| "close"
| "end"
| "pause"
| "readable"
| "resume"
removeListener(event: "data", listener: (chunk: any) => void): this
removeListener(event: "error", listener: (err: Error) => void): this
removeListener(event: string | symbol, listener: (...args: any[]) => void): this
removeListener(ev: string | symbol, fn: )
| (() => void)
| ((chunk: any) => void)
| ((err: Error) => void)
| ((...args: any[]) => void)
setDefaultEncoding(encoding: string)
[captureRejectionSymbol](err?: Error)