node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »



Yet another event handler (AKA Sub/Pub). What seperates Yeah from other Sub/Pub helpers is it provides two key features to help deal with event heavy applications; Compound events and Latched events.

window.yeh = window.yeh || [];
yeh.push(['compound', 'app.ready', ['dom.ready','yeh.ready']]);
window.yeh = yeah('yeh', {
  initialize: function() {
    console.log('Start the application!');
yeh.on('app.ready', yeh.initialize);