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

std/node/_events.mjs

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
import * as mod from "https://deno.land/std@0.168.0/node/_events.mjs";

Functions

Creates a new EventEmitter instance.

Creates a new EventEmitter instance.

Returns a copy of the array of listeners for the event name specified as type.

f
listenerCount
deprecated

Returns the number of listeners listening to the event name specified as type.

Returns an AsyncIterator that iterates event events.

Creates a Promise that is fulfilled when the emitter emits the given event.

Sets the max listeners.