Skip to content

Instantly share code, notes, and snippets.

Avatar

Mark Pereira markspereira

  • zed.io
  • Sydney, Australia
View GitHub Profile
View basic event emitter
//index.js
var Emitter = require('./emitter');
var emtr = new Emitter();
emtr.on('greet', function(){
console.log('Hello 1');
});
emtr.on('greet', function(){
You can’t perform that action at this time.