A node module for smart subprocess handling with support for promises and streamlined subprocess communication.
Go to file
2019-08-22 00:04:27 +02:00
assets BREAKING CHANGE(package): change scope 2018-08-02 15:31:05 +02:00
test fix(core): update testing framework 2018-08-07 11:13:03 +02:00
testassets fix(core): update testing framework 2018-08-07 11:13:03 +02:00
ts fix(core): update 2019-08-22 00:04:27 +02:00
.gitignore initial 2016-09-28 13:01:36 +02:00
.gitlab-ci.yml fix(core): update 2019-08-22 00:04:27 +02:00
npmextra.json fix(core): update 2019-04-08 15:13:47 +02:00
package-lock.json 2.0.5 2019-08-22 00:04:27 +02:00
package.json 2.0.5 2019-08-22 00:04:27 +02:00
README.md fix(core): update 2019-04-08 15:13:47 +02:00
tslint.json fix(core): update 2019-04-08 15:13:47 +02:00

@pushrocks/smartspawn

smart subprocess handling

Status for master

build status coverage report npm downloads per month Known Vulnerabilities TypeScript node JavaScript Style Guide

Usage

Use TypeScript for best in class instellisense.

Understand 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.

How To

Master.ts:

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

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

worker.ts

For further information read the linked docs at the top of this readme.

MIT licensed | © Lossless GmbH | By using this npm module you agree to our privacy policy

repo-footer