signal

A minimalist event library for web applications.

Signal

A minimalist event library for web applications.

var signal = require('signal').createConduit(),
    equal = require('assert').equal;
 
var source = signal.publish('namespace.name');
signal.subscribe('namespace.name', sink);
 
source(1);
 
function sink (number) {
  equal(number, 1, 'got a number');
}

Changes for each release.

  • Create facility to subscribe to only one event. #6.
  • Create publish and subscribe. #5.
  • Build on Travis CI. #3.