@fuwa/events
v1.2.3
Published
A lightweight extension for EventEmitters that allows you to set filters and limits for events.
Downloads
5
Maintainers
Readme
events
A fast and lightweight local pub/sub extension for EventEmitters designed for [fuwa].
Quick Start
class MyEE extends EventEmitter {
event(name) {
return new SubscriptionBuilder(name, this);
}
}
ee.event("test")
.filter(d => d === 0)
.count(1)
.handle(console.log)
.subscribe();
Copyright (C) 2022 Splatterxl.