Pigeon.js
The idea of pigeon.js is to have a light and fast event-bus service. Moreover, to be able to remove your subscriber.
Installation
Install via NPM
npm install pigeonjs
and include the library into your application
Usage
// Register a new channelpigeon; // Verify if my channel was createdpigeon; // returns a boolean // Get a list of all subscribers of my channelpigeonsubscribers; // Get a list of all subscribers of my channelpigeon; // Removes my subscriberlet disposer = pigeon;; // Publish an eventpigeon; // Create a new channellet channel = pigeon;