callbacky

Javascript event handler that allows multiple parts of an application communicate with each other

Usage no npm install needed!

<script type="module">
  import callbacky from 'https://cdn.skypack.dev/callbacky';
</script>

README

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.