Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/node/stream.ts>Readable#on

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method Readable.prototype.on
Re-export
import { Readable } from "https://deno.land/std@0.92.0/node/stream.ts";

Parameters

event:
| "close"
| "end"
| "pause"
| "readable"
| "resume"
listener: () => void

Parameters

event: "data"
listener: (chunk: any) => void

Parameters

event: "error"
listener: (err: Error) => void

Parameters

event: string | symbol
listener: (...args: any[]) => void