npm

callbacky

1.0.2 • Public • Published

callbacky

Build Status Coverage Status npm version Bower version GitHub version

Callbacky is a Javascript event handler that allows multiple parts of an application communicate with each other.

Usage

Callbacky.init();

Callbacky.bind('eventName', function(args){ 
  console.log(args)) 
});
Callbacky.bind('eventName', function(args){ 
  console.warn(args)) 
});

Callbacky.trigger('eventName', 'world');
/* IT EXECUTES: 
console.log('world');
console.warn('world');
*/

Installation

NPM

npm install --save callbacky

You can found the library ready for production on node_modules/callbacky/dist/dist.js

Bower

bower install --save callbacky

You can found the library ready for production on bower_components/callbacky/dist/dist.js

Documentation

To read documentation, go to:

http://d-mobilelab.github.io/callbacky/1.0.1

Replace 1.0.1 with the version of the documentation you want to read.

Package Sidebar

Install

npm i callbacky

Weekly Downloads

20

Version

1.0.2

License

MIT

Last publish

Collaborators

  • aureliome