Ubud
A simple publish/subscribe pattern.
How to install
npm install ubud
How to use
At it's most basic:
var Ubud = ; var event = ; event; event;
A slightly more complex example:
var Ubud = ; var event = ; var token = event; event; event;
ES6
Ubud is written using ES6 syntax.
However, by default this module will use an ES5 compatible file that has been compiled using Babel and includes Babel's polyfill.
This means the compiled file is pretty heavy for what it does.
You're going to be better off using the lightweight
lib/ubud.es6.js
and compiling your JS into a
browser compatible format yourself.