local-rpc
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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

Package Sidebar

Install

npm i local-rpc

Weekly Downloads

2

Version

1.1.0

License

MIT

Unpacked Size

3 kB

Total Files

6

Last publish

Collaborators

  • mvaldesdeleon