No description, website, or topics provided.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
README.md
package.json
test.js

README.md

node-eventer

A node.js module for Easy Pub/Sub events:

$ npm install node-eventer

Then import it into your project:

//Initilze The Node Eventer
var nodeEventer = require('node-eventer').init();

//Subscribe from any piece of your code
nodeEventer.subscribe('helloworld', function(data){
	console.log('received Data ==>', data);	
});

//Then Publish a message to the Event key 'Helloworld'
nodeEventer.publish('helloworld', {"message": " This is the JSON Message"});