Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
squash: replace with import { EventEmitter } from 'node:events'
  • Loading branch information
F3n67u committed Jun 12, 2022
commit 0fd79f369a9804abfc83344473617d452d1d2ab1
4 changes: 2 additions & 2 deletions doc/api/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ to each.
Returns `true` if the event had listeners, `false` otherwise.

```mjs
import EventEmitter from 'node:events';
import { EventEmitter } from 'node:events';
const myEmitter = new EventEmitter();

// First listener
Expand Down Expand Up @@ -454,7 +454,7 @@ Returns an array listing the events for which the emitter has registered
listeners. The values in the array are strings or `Symbol`s.

```mjs
import EventEmitter from 'node:events';
import { EventEmitter } from 'node:events';

const myEE = new EventEmitter();
myEE.on('foo', () => {});
Expand Down