A node module for smart subprocess handling with support for promises and streamlined subprocess communication.
Go to file
2017-03-03 20:52:25 +01:00
dist update smartipc internal code 2017-03-03 20:52:23 +01:00
test update smartipc internal code 2017-03-03 20:52:23 +01:00
ts update smartipc internal code 2017-03-03 20:52:23 +01:00
.gitignore initial 2016-09-28 13:01:36 +02:00
.gitlab-ci.yml ad gitlab.yml 2016-09-28 20:22:05 +02:00
npmextra.json switch to native ipc to scale down on dependencies 2016-09-28 23:46:28 +02:00
package.json 1.0.3 2017-03-03 20:52:25 +01:00
README.md improve README 2017-01-29 23:46:09 +01:00
tslint.json initial 2016-09-28 13:01:36 +02:00
yarn.lock update smartipc internal code 2017-03-03 20:52:23 +01:00

smartipc

smart subprocess handling

Availabililty

npm git git docs

Status for master

build status coverage report Dependency Status bitHound Dependencies bitHound Code TypeScript node JavaScript Style Guide

The purpose

smartipc makes it easy to spawn tasks into subprocesses without loosing control over what those processes do. You can transparently call functions and expect returned data using promises.

Usage

Master.ts:

import * as smartipc from 'smartipc'
smartipc.setBasePathArg(__dirname) // if you want to avoid typings out full paths every time

let myThread = new smartipc.Thread('worker')
myThread.send('someMessageOrObject').then(messageResponse => {
    console.log(messageResponse)
})

worker.ts


npm