@nankle/event-emitter
v1.0.0
Published
> wo, a awesome event emitter library!
Downloads
5
Readme
js event emitter
wo, a awesome event emitter library!
import Emitter from '@nankle/event-emitter';
class Demo extends Emitter {
...
}
const demo = new Demo();
demo.on('read', () => {
console.log('read');
}, true);
demo.emit('read');