Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/krawaller/callbag-proxy
https://github.com/krawaller/callbag-proxy
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/krawaller/callbag-proxy
- Owner: krawaller
- License: mit
- Created: 2018-02-18T17:59:04.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-23T07:34:38.000Z (over 6 years ago)
- Last Synced: 2024-09-17T14:22:10.757Z (4 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-callbags - proxy
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);
```