Module

std/node/fs.ts>ReadStream#on

Deno standard library
Go to Latest
method ReadStream.prototype.on
import { ReadStream } from "https://dotland.deno.dev/std@0.177.0/node/fs.ts";

Parameters

event: "close"
listener: () => void

Parameters

event: "data"
listener: (chunk: Buffer | string) => void

Parameters

event: "end"
listener: () => void

Parameters

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

Parameters

event: "open"
listener: (fd: number) => void

Parameters

event: "pause"
listener: () => void

Parameters

event: "readable"
listener: () => void

Parameters

event: "ready"
listener: () => void

Parameters

event: "resume"
listener: () => void

Parameters

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