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

std/node/readline.ts>Interface#emit

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

Parameters

event: string | symbol
...args: any[]

Returns

boolean

Parameters

event: "close"

Returns

boolean

Parameters

event: "line"
input: string

Returns

boolean

Parameters

event: "pause"

Returns

boolean

Parameters

event: "resume"

Returns

boolean

Parameters

event: "SIGCONT"

Returns

boolean

Parameters

event: "SIGINT"

Returns

boolean

Parameters

event: "SIGTSTP"

Returns

boolean

Parameters

event: "history"
history: string[]

Returns

boolean