1.0.5 • Published 4 years ago

errorsparty.dev-events v1.0.5

Weekly downloads
3
License
MIT
Repository
-
Last release
4 years ago

errorsparty.dev-events

A typed, small event emitter.

How to use?

This is as easy as it can be.

  1. Firstly, install the package.

    yarn add errorsparty.dev-events
  2. Second, import it into your project wherever you need it.

    import { EventEmitter } from "errorsparty.dev-events";
  3. Third, use it to your needs.

    There are some examples on how you can use it:

    • default - A simple example.
    • once - A simple example, but shows how to only listen to an event once.
    • multiple - An example with multiple event emitters.
    • extend - A little bit more advanced example with a class that extends the event emitter.
    • alice-bob - An advanced example with Alice and Bob chatting with each other, using the event emitter to communicate.
1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

0.1.0

4 years ago