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

std/node/readline.ts>Interface#once

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

Parameters

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

Parameters

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

Parameters

event: "line"
listener: (input: string) => void

Parameters

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

Parameters

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

Parameters

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

Parameters

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

Parameters

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

Parameters

event: "history"
listener: (history: string[]) => void