local-rpc
v1.1.0
Published
Proxy-based local-rpc (aka runtime dependency injection)
Downloads
8
Maintainers
Readme
local-rpc
Proxy-based local-rpc (aka runtime dependency injection)
// Consumer API
const { componentA, componentB } = require('local-rpc');
componentA.firstOperation(1, 2, 3);
componentB.subComponentX.finalOperation(4, 5, 6);
// Profit
// Provider API
require('local-rpc')((...args) => console.log(...args));
// Profit
install
with npm do:
npm install local-rpc
license
MIT