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

std/node/stream.ts>Writable#once

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method Writable.prototype.once
import { Writable } from "https://deno.land/std@0.153.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