Your friendly local event emitter 📡
yarn add emmie
const emitter = emmie();
// Register an event listener
const fn = () => {};
emitter.on('signup', fn);
// Trigger the event
emitter.emit('signup');
// Unregister the event listener
emitter.off('signup', fn);
yarn test
👤 Dimitrios Lytras
- Website: https://dimitrioslytras.com
- Twitter: @dnlytras
- Github: @dimitrisnl
Give a ⭐️ if this project helped you!
Have a great day! 😎