# enviro-rx

> An asynchronous environment library

Latest version **2.0.4** (published 2017-09-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install enviro-rx
pnpm add enviro-rx
yarn add enviro-rx
bun add enviro-rx
```

## 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 | 2.0.4 |
| Published | 2017-09-21 |
| First published | 2017-08-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=6.0.0 |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Andrew Ramos |
| Maintainers | fiberwire |
| Keywords | environment, async, asynchronous, state, container, reactive |

## Links

- npm: https://www.npmjs.com/package/enviro-rx
- Repository: http://www.github.com/fiberwire/enviro
- npm.io page: https://npm.io/package/enviro-rx

## Dependencies (3)

- [rxjs](https://npm.io/package/rxjs.md) ^5.4.3
- [chance](https://npm.io/package/chance.md) ^1.0.10
- [lodash](https://npm.io/package/lodash.md) ^4.17.4

## Alternatives

- [replicas-cli](https://npm.io/package/replicas-cli.md) — 3.0K weekly downloads
- [env-contract](https://npm.io/package/env-contract.md) — 133 weekly downloads
- [@openveo/api](https://npm.io/package/@openveo/api.md) — 61 weekly downloads
- [@ryniaubenpm2/cumque-error-reiciendis](https://npm.io/package/@ryniaubenpm2/cumque-error-reiciendis.md) — 54 weekly downloads
- [ts-global-type-extra](https://npm.io/package/ts-global-type-extra.md) — 11 weekly downloads

## Recent versions

- 2.0.4 (latest) — 2017-09-21
- 2.0.3 — 2017-09-21
- 2.0.2 — 2017-09-15
- 2.0.1 — 2017-09-14
- 2.0.0 — 2017-09-03
- 1.2.0 — 2017-09-02
- 1.1.1 — 2017-08-30
- 1.1.0 — 2017-08-30
- 1.0.1 — 2017-08-30
- 1.0.0 — 2017-08-30

## README

[![Build Status](https://travis-ci.org/fiberwire/enviro.svg?branch=master)](https://travis-ci.org/fiberwire/enviro.svg?branch=master)
[![Coverage Status](https://coveralls.io/repos/github/fiberwire/enviro/badge.svg?branch=master)](https://coveralls.io/github/fiberwire/enviro?branch=master)
[![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT)

# Enviro
A reactive environment library.

## What is a reactive environment?
A reactive environment is a state container that can be updated asynchronously, at which point its updated state will be sent to all subscribers.

## What can I do with a reactive environment?
In the simplest case, using a `DirectEnvironment`, you could synchronize state between any number of sources of interaction in an asynchronous way with little effort.

In a more advanced case, you could use an `AgentEnvironment` to implement an authoritative game environment where Agents send input and the environment applies that input to its state. Or you could use it as an AI simulation environment.

I made this library to be used with [enome](http://www.github.com/fiberwire/enome), which is a reactive evolution framework.

### To-Do:
 - [x] `DirectEnvironment`
 - [x] `AgentEnvironment`
 - [ ] `TimeTravelEnvironment`
 - [ ] `TurnBasedEnvironment`

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