Skip to main content
REPLServer.prototype.emit - repl - Node documentation
method REPLServer.prototype.emit

Usage in Deno

import { REPLServer } from "node:repl";
REPLServer.prototype.emit(
event: string | symbol,
...args: any[],
): boolean

Parameters

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

Return Type

boolean
REPLServer.prototype.emit(event: "close"): boolean

Parameters

event: "close"

Return Type

boolean
REPLServer.prototype.emit(
event: "line",
input: string,
): boolean

Parameters

event: "line"
input: string

Return Type

boolean
REPLServer.prototype.emit(event: "pause"): boolean

Parameters

event: "pause"

Return Type

boolean
REPLServer.prototype.emit(event: "resume"): boolean

Parameters

event: "resume"

Return Type

boolean
REPLServer.prototype.emit(event: "SIGCONT"): boolean

Parameters

event: "SIGCONT"

Return Type

boolean
REPLServer.prototype.emit(event: "SIGINT"): boolean

Parameters

event: "SIGINT"

Return Type

boolean
REPLServer.prototype.emit(event: "SIGTSTP"): boolean

Parameters

event: "SIGTSTP"

Return Type

boolean
REPLServer.prototype.emit(event: "exit"): boolean

Parameters

event: "exit"

Return Type

boolean
REPLServer.prototype.emit(
event: "reset",
context: Context,
): boolean

Parameters

event: "reset"
context: Context

Return Type

boolean
Back to top