1.1.0 • Published 7 months ago
@katrieltsepelevish/emtr v1.1.0
Emtr
A lightweight event emitter for Javascript
Dependecy Installation
yarn:
yarn add @katrieltsepelevish/emtr
Usage
import Emtr from '@katrieltsepelevish/emtr';
const emitter = new Emtr();
const cb = emitter.handle('test', () => console.log('fired!'));
emitter.fire('test');
const num = emitter.count('test');
console.log(num);
emitter.remove('test', cb);
emitter.clear();
Publish
Make sure to bump the version before publishing
yarn build
npm publish --access=public