beast-trigger
This is to have triggers that are detached from any object. This provides a way to execute a function if there is a listener. Or else silently failed if there isn't a listener
Usage no npm install needed!
<script type="module">
import beastTrigger from 'https://cdn.skypack.dev/beast-trigger';
</script>