/emmie

📡 Your friendly local event emitter

Primary LanguageTypeScriptMIT LicenseMIT

Welcome to emmie 👋

License: MIT CircleCI Size Twitter: dnlytras

Your friendly local event emitter 📡

Install

yarn add emmie

Usage

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);

Run tests

yarn test

Author

👤 Dimitrios Lytras

Show your support

Give a ⭐️ if this project helped you!


Have a great day! 😎