An open API service indexing awesome lists of open source software.

https://github.com/alwaysblank/denden

Extremely simple event-based pub/sub system.
https://github.com/alwaysblank/denden

Last synced: about 1 year ago
JSON representation

Extremely simple event-based pub/sub system.

Awesome Lists containing this project

README

          

# Den Den

Extremely simple publish/subscribe system built on events and nothing else.

Designed for the browser, but should work in an JS context that supports events.

## Examples

```javascript
const hub = new Hub();

hub.sub('recipes', (payload) => console.log(payload) );

hub.pub('recipes', 'add eggs');

// "add eggs"
```