2.0.1 • Published 7 years ago

eventusjs v2.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

EventusJS

Version: 2.0.0

How to use the lib by example

  • See test/test-async.js on how to use the library.
  • Run npm test to see it in action.

Usage

`Events.on('IwillListenThisEvent', function(data){ //Do some stuff... console.log('IwillListenThisEvent has been fired with this data:',data);

});`.

Somewhere else in your code:

Events.broadcast(('IwillListenThisEvent',someData) Async broadcast. Returns immediately and run all hooked functions Async.

Author: Alejandro Corsino (https://github.com/alecorsino)