node package manager
Easy collaboration. Discover, share, and reuse code in your team. Create a free org »

proto-events

Events-proto

Eventemitter on my proto-scope module.

Code mainly are from https://gist.github.com/Contra/2759355 .

Usage

npm install --save proto-events
{events} = require './events.js'
 
= events.new()
 
a.on 'demo'(data) ->
  console.log 'demo:'data
 
a.emit 'demo''data?'

License

BSD-2-Clause