This package has been deprecated

Author message:

For now, this project is deprecated. If by any chance you were using this, and would like to see more of it in some form, let me know: justnvdm(at)gmail.com

sig-event

0.1.1 • Public • Published

sig.event

Build Status

turn event listeners into sig signals

var EventEmitter = require('events').EventEmitter,
    event = require('sig-event')
 
 
var ee = new EventEmitter()
 
event(ee, 'foo')
  .map(function(v) { return v + 1 })
  .each(console.log)
  .done()
 
ee.emit(21)  // 22
  .emit(22)  // 23
  .emit(23)  // 24

supports:

install

node:

$ npm install sig-event

browser:

$ bower install sig-event

api

event([obj, event])

Takes an object obj and an event name event and returns a signal that propagates each event with the name event emitted by obj. The signal will stop listening for events once it has ended.

Readme

Keywords

Package Sidebar

Install

npm i sig-event

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • justinvdm