Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/krawaller/callbag-proxy


https://github.com/krawaller/callbag-proxy

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# callbag-proxy

[Callbag](https://github.com/callbag/callbag) proxy useful for solving circular dependencies between sources.

```js
const proxy = makeProxy();

// later

proxy.connect(sourceToProxy);
```

`npm install callbag-proxy`

## example

```js
const makeProxy = require('callbag-proxy');

const sourceB_proxy = makeProxy();

const sourceA = /* code involving sourceB_proxy */

const sourceB = /* code involving sourceA */

sourceB_proxy.connect(sourceB);
```