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

std/node/_stream.d.ts>Readable#once

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method Readable.prototype.once
import { Readable } from "https://deno.land/std@0.161.0/node/_stream.d.ts";

Parameters

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

Parameters

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

Parameters

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

Parameters

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

Parameters

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

Parameters

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

Parameters

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

Parameters

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