paper-cups
wonka
Our great sponsors
paper-cups | wonka | |
---|---|---|
1 | 1 | |
0 | 684 | |
- | 2.0% | |
10.0 | 6.3 | |
about 1 year ago | 9 months ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
paper-cups
-
You’ve Got Options for Removing Event Listeners
Totally esoteric but based on your article you might find this interesting: I had to use a weird pattern with weak references and FinalizationRegistry for a project at work (long story). Basically the listener cleanup occurs automatically as part of the object finalization once there are no more references to it. I use the same pattern in this unfinished toy project here: https://github.com/exbotanical/paper-cups/blob/master/src/runtime.ts
wonka
What are some alternatives?
getEventListeners - Polyfill for the getEventListeners method available in dev tools. Includes a) extended event listener options 'first', 'last' and 'unstoppable', b) a patch to scope calls to 'stopPropagation()'.
robot - 🤖 A functional, immutable Finite State Machine library
tseep - Fastest event emitter in the world for js
strong-mock - Type safe mocking library for TypeScript
ramda - :ram: Practical functional Javascript
fp-ts - Functional programming in TypeScript
io-ts - Runtime type system for IO decoding/encoding
vue-global-events - ⌨️ Register global events as a component
emitter - Event Emitter
ts-belt - 🔧 Fast, modern, and practical utility library for FP in TypeScript.
fp - fp - My little functional programming library
ts-essentials - All essential TypeScript types in one place 🤙