# @pilotlab/lux-signals

> A luxurious user experience framework, developed by your friends at Pilot.

Latest version **0.1.56** (published 2018-01-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install @pilotlab/lux-signals
pnpm add @pilotlab/lux-signals
yarn add @pilotlab/lux-signals
bun add @pilotlab/lux-signals
```

## Health

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

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

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.56 |
| Published | 2018-01-22 |
| First published | 2017-06-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Pilot Lab |
| Maintainers | pilotlab |
| Keywords | UX, framework, utilities, pilot, pilotlab |

## Links

- npm: https://www.npmjs.com/package/@pilotlab/lux-signals
- Repository: https://gitlab.com/pilot-lab/lux/lux-core
- Issues: https://gitlab.com/pilot-lab/lux/lux-core/issues
- npm.io page: https://npm.io/package/@pilotlab/lux-signals

## Dependencies (3)

- [@pilotlab/lux-is](https://npm.io/package/@pilotlab/lux-is.md) *
- [@pilotlab/lux-ids](https://npm.io/package/@pilotlab/lux-ids.md) *
- [@pilotlab/lux-collections](https://npm.io/package/@pilotlab/lux-collections.md) *

## Alternatives

- [@reckona/mreact-store](https://npm.io/package/@reckona/mreact-store.md) — 976 weekly downloads
- [regular-state](https://npm.io/package/regular-state.md) — 410 weekly downloads
- [@pacote/flux-actions](https://npm.io/package/@pacote/flux-actions.md) — 65 weekly downloads
- [@pilotlab/lux-debug](https://npm.io/package/@pilotlab/lux-debug.md) — 39 weekly downloads
- [vue-persist-state](https://npm.io/package/vue-persist-state.md) — 19 weekly downloads

## Recent versions

- 0.1.56 (latest) — 2018-01-22
- 0.1.53 — 2018-01-20
- 0.1.49 — 2018-01-18
- 0.1.39 — 2018-01-04
- 0.1.37 — 2017-12-12
- 0.1.16 — 2017-12-03
- 0.1.12 — 2017-11-15
- 0.1.9 — 2017-07-05
- 0.1.7 — 2017-07-04
- 0.1.6 — 2017-07-02
- 0.1.3 — 2017-06-30
- 0.1.2 — 2017-06-30
- 0.1.1 — 2017-06-30
- 0.0.3 — 2017-06-29
- 0.0.2 — 2017-06-27
- … 1 more at https://npm.io/package/@pilotlab/lux-signals/versions

## README

# lux-signals

Use to dispatch and listen for event signals.

## Install

`sudo npm install --save @pilotlab/lux-signals`

## Usage

```
import Signal from '@pilotlab/lux-signals';

/** 
* Pass true to the constructor, if you want new listeners
* to be notified if the event has already been dispatched.
**/

let loaded:Signal<string> = new Signal<string>(true);
loaded.listen((value:string) => console.log(value));
loaded.dispatch('Loading complete');
```

## SignalMonitor

Use SignalMonitor to wait for several signals to be dispatched.

```
let monitor:SignalMonitor = new SignalMonitor();
monitor.add(signal1);
monitor.add(signal2);
monitor.allSignalsDispatched.listen(() => console.log('All done!'));
monitor.start();
```

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