cemitter
Super tiny, closure-based event emitter.
Installation
npm install cemitter
Usage
const cemitter =const emitter =emitter
API
emitter = cemitter()
Initialize an emitter.
emitter.on(event, callback([...data]))
Register an event with the given callback.
emitter(event[, ...data])
Trigger an event and execute the corresponding callback with the given data.
Aliased to emitter.on
.