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 ReadableStream
implements EventEmitter
import { type ReadableStream } from "https://deno.land/std@0.123.0/node/_global.d.ts";

Properties

readable: boolean

Methods

read(size?: number): string | Buffer
setEncoding(encoding: BufferEncoding): this
pause(): this
resume(): this
isPaused(): boolean
pipe<T extends WritableStream>(destination: T, options?: { end?: boolean | undefined; }): T
unpipe(destination?: WritableStream): this
unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void
wrap(oldStream: ReadableStream): this
[[Symbol.asyncIterator]](): AsyncIterableIterator<string | Buffer>