Skip to content

Commit

Permalink
squash: replace with import { EventEmitter } from 'node:events'
Browse files Browse the repository at this point in the history
  • Loading branch information
F3n67u committed Jun 12, 2022
1 parent 5260dc4 commit 0fd79f3
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 0fd79f3

Please sign in to comment.