Displaying 1 to 6 from 6 results

eventemitter3 - EventEmitter3 - Because there's also a number 2. And we're faster.

  •    Javascript

It's a drop in replacement for existing EventEmitters, but just faster. Free performance, who wouldn't want that? The EventEmitter is written in EcmaScript 3 so it will work in the oldest browsers and node versions that you need to support.We've upgraded the API of the EventEmitter.on, EventEmitter.once and EventEmitter.removeListener to accept an extra argument which is the context or this value that should be set for the emitted events. This means you no longer have the overhead of an event that required fn.bind in order to get a custom this value.

emittery - Simple and modern async event emitter

  •    Javascript

It's only ~200 bytes minified and gzipped. I'm not fanatic about keeping the size at this level though.Emitting events asynchronously is important for production code where you want the least amount of synchronous operations.

p-event - Promisify an event by waiting for it to be emitted

  •    Javascript

Useful when you need only one event emission and want to use it with promises or await it in an async function.If you want multiple individual events as they are emitted, this module is not for you, as a Promise is a single value. Instead, just continue using event callback or use Observables.

redis-eventemitter - Redis pubsub using an event emitter for node.js

  •    Javascript

Use redis as pubsub using a simple eventemitter. To be able to handle errors (like when the redis server is down) .on('error', ...) should be used.

dead-simple - :skull::bulb: Dead simple PubSub and EventEmitter in JavaScript

  •    Javascript

Small, readable, almost-tweetable modules utilising classic patterns in modern language. This project started a pair of gists which included a hand minified version, too.

ioredis-eventemitter - Redis pubsub using an event emitter via ioredis Redis client for Node.js

  •    Javascript

Redis pubsub using an event emitter via ioredis Redis client. ioredis is a robust, performance-focused and full-featured Redis client for Node and io.js.

We have large collection of open source products. Follow the tags from Tag Cloud >>

Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.