lite-event-emitter
A very simple and light event emitter.
install
npm install lite-event-emitter
Usage
on
; //add a handler; //fire off an eventevents.emit"foo", "bar"; //remove the handlerdispose;
once
; events.once"foo",;events.emit"foo", "bar"; // subscription auto-disposed
Credits
"Flask" Icon courtesy of The Noun Project, by Julien Deveaux, under CC 3.0