class default
extends Stream
import { default } from "https://dotland.deno.dev/std@0.110.0/node/_stream/readable.ts";
Constructors
new
default(options?: ReadableOptions)Properties
_readableState: ReadableState
Methods
_destroy(error: Error | null, callback: (error?: Error | null) => void): void
_read(_size?: number)
destroy(err?: Error | null, cb?: () => void)
isPaused()
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)
pause()
read(n?: number)
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)
resume()
setEncoding(enc: Encodings)
unshift(chunk: any, encoding?: string): boolean
[captureRejectionSymbol](err: Error)
Static Methods
from(iterable: Iterable<any> | AsyncIterable<any>, opts?: ReadableOptions): Readable