# reynok-event

> Browser event system for javascript

Latest version **1.0.5** (published 2020-02-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install reynok-event
pnpm add reynok-event
yarn add reynok-event
bun add reynok-event
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2020-02-17 |
| First published | 2020-02-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jan Stefan Gehrmann |
| Maintainers | mrspace |
| Keywords | browser, events |

## Links

- npm: https://www.npmjs.com/package/reynok-event
- Repository: https://github.com/jan-stefan/ReynokEvent
- Homepage: https://github.com/jan-stefan/ReynokEvent#readme
- Issues: https://github.com/jan-stefan/ReynokEvent/issues
- npm.io page: https://npm.io/package/reynok-event

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2020-02-17
- 1.0.3 — 2020-02-16
- 1.0.2 — 2020-02-16
- 1.0.1 — 2020-02-15
- 1.0.0 — 2020-02-11

## README

# ReynokEvent

Reynok Event is a small event system which enables you to subscribe and emit events in browser or node runtime environment.

## Usage / Example

Include it in your project:
```javascript
let Event = require('reynok-event');
```

OR

```javascript
import Event from 'reynok-event';
```


After that just subscribe to a event:
```javascript
const EVENT_ID = Event.subscribe('my-event-name', function () {
           console.log('I will be executed when emitting the event');
       });
```

You can emit a event using:
```javascript
ReynokEvent.emit('my-event-name');
```

Also events can be unsubscribed:
Just use the EventID you get when subscribing to it.
```javascript
Event.unsubscribe(EVENT_ID);
```

---
_Source: https://npm.io/package/reynok-event · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
