Module

std/node/stream.ts>Writable#on

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

Parameters

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

Parameters

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

Parameters

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

Parameters

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

Parameters

event: "pipe"
listener: (src: Readable) => void

Parameters

event: "unpipe"
listener: (src: Readable) => void

Parameters

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