# strong-events

> Strong Typed Event Emitter for TypeScript / JavaScript.

Latest version **1.0.7** (published 2019-09-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install strong-events
pnpm add strong-events
yarn add strong-events
bun add strong-events
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2019-09-25 |
| First published | 2019-08-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Endel Dreyer |
| Maintainers | endel |
| Keywords | events, emitter, event-driven, asynchronous |

## Links

- npm: https://www.npmjs.com/package/strong-events
- Repository: https://github.com/endel/strong-events
- Homepage: https://github.com/endel/strong-events#readme
- Issues: https://github.com/endel/strong-events/issues
- npm.io page: https://npm.io/package/strong-events

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 1.0.7 (latest) — 2019-09-25
- 1.0.6 — 2019-08-22
- 1.0.5 — 2019-08-14
- 1.0.4 — 2019-08-11
- 1.0.3 — 2019-08-07
- 1.0.2 — 2019-08-07
- 1.0.1 — 2019-08-06
- 1.0.0 — 2019-08-06

## README

# strong-events

Lightweight Strong Typed Event Signaling for TypeScript / JavaScript.

## What is a Signal?

TODO
> https://github.com/millermedeiros/js-signals/wiki/Comparison-between-different-Observer-Pattern-implementations

## Installation

```
npm install strong-events
```

## Usage

```typescript
import { createSignal } from "strong-events";

const onSomeEvent = createSignal<(string) => void>();

// register a callback
onSomeEvent(function(value) {
  console.log("event emitted with:", value);
});

// registering a callback to run just once
onSomeEvent.once(function(value) {
  console.log("event emitted once, with:", value);
});

// invoke the event
onSomeEvent.invoke("triggering the event!");
```


## LICENSE

MIT.

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