# really-small-events

> A Tiny Typescript Event Library

Latest version **1.1.0** (published 2017-12-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install really-small-events
pnpm add really-small-events
yarn add really-small-events
bun add really-small-events
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2017-12-05 |
| First published | 2017-07-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | clicksimply |
| Keywords | events, event, typescript, callback |

## Links

- npm: https://www.npmjs.com/package/really-small-events
- Repository: https://github.com/ClickSimply/really-small-events
- Homepage: https://github.com/ClickSimply/really-small-events#readme
- Issues: https://github.com/ClickSimply/really-small-events/issues
- npm.io page: https://npm.io/package/really-small-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.1.0 (latest) — 2017-12-05
- 1.0.0 — 2017-07-12

## README

# really-small-events
A Tiny Typescript Event Library

Just over 300 bytes gzipped. :)

## Installation

```js
npm i really-small-events --save 
```

## Usage

Typescript / Babel
```js
import { RSE } from "really-small-events";
```

NodeJS
```js
const RSE = require("really-small-events").RSE;
```

## API

Listen for events
```js
const runThisFunc = (as, many, args, as, I, want) => {
    console.log("Hello, world!");
};

// Listen for Event
RSE.on("someEvent", runThisFunc)

// Trigger event anywhere in your app
RSE.trigger("someEvent", the, args, to, pass, to, the, event);

// Remove listener
RSE.off("someEvent", runThisFunc);
```

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