1.1.0 • Published 7 months ago

@katrieltsepelevish/emtr v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

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
1.0.2

7 months ago

1.1.0

7 months ago

1.0.1

7 months ago

1.0.6

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.0

1 year ago