Lightweight RPC over IPC for node.js
$ npm i rpc-over-ipcproc-ChildProcessinstance orprocessname- function namefunc- asynchronous function to call, last argument should be a callback function that takeserrandresultarguments
var rpc = require('rpc-over-ipc');
rpc.register(process, 'add', function(a, b, callback) {
callback(null, a + b);
});proc-ChildProcessinstance orprocessname- function nameargs- array the arguments with whichnamefunction should be called, optionalcallback- callback function which is called whennamefunctions have finished
var rpc = require('rpc-over-ipc');
rpc.call(process, 'add', [1, 2], function(err, result) {
console.log(result);
});