Process.on - Node documentation
method Process.on

Usage in Deno

import { type Process } from "node:process";
Process.on(
event: "beforeExit",
): this

Parameters

event: "beforeExit"

Return Type

this
Process.on(
event: "disconnect",
): this

Parameters

event: "disconnect"

Return Type

this
Process.on(
event: "exit",
listener: ExitListener,
): this

Parameters

event: "exit"
listener: ExitListener

Return Type

this
Process.on(
event: "rejectionHandled",
): this

Parameters

event: "rejectionHandled"

Return Type

this
Process.on(
event: "uncaughtException",
): this

Parameters

event: "uncaughtException"

Return Type

this
Process.on(
event: "uncaughtExceptionMonitor",
): this

Parameters

event: "uncaughtExceptionMonitor"

Return Type

this
Process.on(
event: "unhandledRejection",
): this

Parameters

event: "unhandledRejection"

Return Type

this
Process.on(
event: "warning",
listener: WarningListener,
): this

Parameters

event: "warning"
listener: WarningListener

Return Type

this
Process.on(
event: "message",
listener: MessageListener,
): this

Parameters

event: "message"
listener: MessageListener

Return Type

this
Process.on(
event: Signals,
listener: SignalsListener,
): this

Parameters

event: Signals
listener: SignalsListener

Return Type

this
Process.on(
event: "multipleResolves",
): this

Parameters

event: "multipleResolves"

Return Type

this
Process.on(
event: "worker",
listener: WorkerListener,
): this

Parameters

event: "worker"
listener: WorkerListener

Return Type

this
Process.on(
event: string | symbol,
listener: (...args: any[]) => void,
): this

Parameters

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

Return Type

this