emmie
v1.0.2
Published
<h1 align="center">Welcome to emmie 👋</h1> <p> <a href="#" target="_blank"> <img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg" /> </a> <img alt="CircleCI" src="https://circleci.com/gh/dimitrisnl/emmie/tree/master.
Downloads
4
Readme
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
- Website: https://dimitrioslytras.com
- Twitter: @dnlytras
- Github: @dimitrisnl
Show your support
Give a ⭐️ if this project helped you!
Have a great day! 😎