MlistenerCount
Bun

method

events.default.NodeEventTarget.listenerCount

type: string
): number;

Node.js-specific extension to the EventTarget class that returns the number of event listeners registered for the type.