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

std/node/_events.mjs>on

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

Returns an AsyncIterator that iterates event events.

Parameters

emitter
event
options