ripc
v2.0.1
Published
Simplifies inter-process communication by abstracting it as async functions.
Downloads
6
Readme
RIPC
Simplifies inter-process communication by abstracting it as async functions.
RIPC stands for RIPC Inter Process Communication
Example
main.js:
const ripc = require('ripc')
const worker = ripc('./worker.js')
async function main() {
await worker.greet()
worker.close()
}
main()
worker.js:
const ripc = require('ripc')
ripc(process, {
greet() {
console.log('Hello World')
}
})
More example code here.