# can-stream-rxjs

> Stream values into and out of computes using can-stream + rxjs

Latest version **0.1.6** (published 2017-05-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install can-stream-rxjs
pnpm add can-stream-rxjs
yarn add can-stream-rxjs
bun add can-stream-rxjs
```

## 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.1.6 |
| Published | 2017-05-03 |
| First published | 2017-04-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Michael Price |
| Maintainers | webmech |
| Keywords | canjs, canjs-plugin, can-stream, can-stream-x, frp, stream, rxjs |

## Links

- npm: https://www.npmjs.com/package/can-stream-rxjs
- Repository: https://github.com/web-mech/can-stream-rxjs
- Issues: https://github.com/web-mech/can-stream-rxjs/issues
- npm.io page: https://npm.io/package/can-stream-rxjs

## Dependencies (2)

- [rxjs](https://npm.io/package/rxjs.md) ^5.3.0
- [can-stream-x](https://npm.io/package/can-stream-x.md) ^1.0.0

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 0.1.6 (latest) — 2017-05-03
- 0.1.5 — 2017-05-01
- 0.1.4 — 2017-04-30
- 0.1.3 — 2017-04-29
- 0.1.2 — 2017-04-29
- 0.1.1 — 2017-04-29
- 0.1.0 — 2017-04-29

## README

# can-stream-rxjs

[![Build Status](https://travis-ci.org/web-mech/can-stream-rxjs.svg?branch=master)](https://travis-ci.org/web-mech/can-stream-rxjs)

Stream values into and out of computes using can-stream + rxjs

## Syntax

```
canStream.toStream([compute]);

canStream.toCompute([stream]);
```

## Example Usage

### toStream
```
var canStream = require('can-stream-rxjs');

var c = compute(0);

var stream = canStream.toStream(c);

var computeVal;

stream.subscribe((newVal) => {
	computeVal = newVal;
});

c(1);

console.log(computeVal); //1
```


### toCompute
```
const c = canStream.toCompute(setStream => setStream);

c(5);
// listen to the compute for it to have a value
c.on('change', () => {});

// immediate value
c() //5
```

## testing

```
npm test
```

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