No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 33b4622 Jul 23, 2018
Permalink
Failed to load latest commit information.
.gitignore Distribute module entry Jul 22, 2018
LICENSE initial commit Feb 18, 2018
README.md syntax highlight in first readme example Feb 21, 2018
index.js Distribute module entry Jul 22, 2018
package-lock.json 1.1.0 Jul 23, 2018
package.json 1.1.0 Jul 23, 2018
test.js Distribute module entry Jul 22, 2018

README.md

callbag-proxy

Callbag proxy useful for solving circular dependencies between sources.

const proxy = makeProxy();

// later

proxy.connect(sourceToProxy);

npm install callbag-proxy

example

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

const sourceB_proxy = makeProxy();

const sourceA = /* code involving sourceB_proxy */

const sourceB = /* code involving sourceA */

sourceB_proxy.connect(sourceB);