Module

std/node/readline.ts>Interface#on

Deno standard library
Go to Latest
method Interface.prototype.on
import { Interface } from "https://dotland.deno.dev/std@0.177.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