Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/pup/lib/common/eventemitter.ts>EventEmitter#on

Universal process manager built in Deno
Go to Latest
method EventEmitter.prototype.on
import { EventEmitter } from "https://deno.land/x/pup@1.0.0-beta.12/lib/common/eventemitter.ts";

Registers an event listener for the specified event.

Parameters

event: string
  • The name of the event to listen for.
  • The callback function to execute when the event is triggered.