1. @algolia/events
Node's event emitter for all engines.
@algolia/events
Package: @algolia/events
Created by: algolia
Last modified: Wed, 18 Oct 2023 14:43:30 GMT
Version: 4.0.1
License: MIT
Downloads: 2,576,530
Repository: https://github.com/algolia/events

Install

npm install @algolia/events
yarn add @algolia/events

events Build Status

Algolia's fork of Node's event emitter for all engines.

Specifics:

  • v1.1.1-based, as it's much smaller and we don't use the newer features
  • builtin type-definitions
  • better interop with ESM, while still being cjs

Install

npm install events

Require

 var EventEmitter = require('events');

Usage

See the node.js event emitter docs

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code