announcement
Asynchronous event emitter and aggregator.
Install
npm
Install withnpm i announcement --save
Run tests
npm test
Usage
var Announcement = ;
API
Announcement
Main entry point of Announcement event emitter/aggregator
var Announcement = ;var announcement = ;
.on
Register a listener for an event.
event
{String|Function}: Event type to listen for.cb
{Function}: Callback invoked whenevent
type is emitted.returns
{Function}: Original callback function or handler function to use to remove listener.
announcement; var {};announcement;
.emit
Asynchronously emit an event and additional data.
event
{String|Object}: Event type to emit.
// emit string eventannouncement; // emit typed eventvar foo = ;foobar = 'baz';announcement;
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Author
Brian Woodward
License
Copyright (c) 2015 Brian Woodward
Released under the MIT license
This file was generated by verb on January 27, 2015.