# biojs-events

> BioJS event system

Latest version **0.0.4** (published 2014-08-13) · Apache 2 license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2014-08-13 |
| First published | 2014-08-05 |
| Weekly downloads | 0 |
| License | Apache 2 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | BioJS |
| Maintainers | greenify |
| Keywords | biojs, event |

## Links

- npm: https://www.npmjs.com/package/biojs-events
- Repository: https://github.com/biojs/biojs-events
- Issues: https://github.com/biojs/biojs2/issues
- npm.io page: https://npm.io/package/biojs-events

## Dependencies (1)

- [backbone-events-standalone](https://npm.io/package/backbone-events-standalone.md) ^0.2.2

## 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

- 0.0.4 (latest) — 2014-08-13
- 0.0.3 — 2014-08-13
- 0.0.2 — 2014-08-11
- 0.0.1 — 2014-08-05

## README

event system
------------------

This is a convenience wrapper for the [Event system](https://github.com/biojs/biojs2/wiki/Event-systems).

You can choose any library that supports the choosen syntax.

This wrapper here is for [`backbone-events-standalone`](https://www.npmjs.org/package/backbone-events-standalone) and thus the Backbone event system.


How to use
----------

### 1. install

```
npm install biojs-events --save
```

### 2. Mix the events capability with your object 

After the code of your BioJS component add the events capability by mixing you component object with the events:

```
require('biojs-events').mixin(my_component);
```

### 3. Trigger events

Now in your code you can use the events methods (trigger, off,on,once):

```
self.trigger('onSomethingChanged', {
 data : "some data to include in your event"
});
```

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