Skip to content

Completely original EventEmmitter that isn't based on anything else

License

Notifications You must be signed in to change notification settings

174n/EventEmitter11

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EventEmitter11

EventEmitter11

last commit version downloads license

Completely original EventEmmitter that isn't based on anything else

Warning: at this development stage it only supports node

Usage

You should install it first

npm i eventemitter11

Then you can use it

const Emitter = require('eventemitter11');
const emitter = new Emitter();

// Init listener
emitter.listen('my-original-event', (args) => {
  // do stuff
}, '10 minutes'); // TTL argument is optional

// Emit the event
emitter.emit('my-original-event', 'hi');

TODO

  • Add browser support
  • Implement once listener
  • Copy the rest of EventEmitter2

About

Completely original EventEmmitter that isn't based on anything else

Resources

License

Stars

Watchers

Forks