Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method Interface.prototype.on
import { Interface } from "https://deno.land/std@0.137.0/node/_readline.d.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