A node module for smart subprocess handling with support for promises and streamlined subprocess communication.
Go to file
2024-04-01 19:59:44 +02:00
.vscode BREAKING CHANGE(core): switch to esm 2022-07-28 22:35:16 +02:00
assets BREAKING CHANGE(package): change scope 2018-08-02 15:31:05 +02:00
test BREAKING CHANGE(core): switch to esm 2022-07-28 22:35:16 +02:00
testassets fix(core): update testing framework 2018-08-07 11:13:03 +02:00
ts fix(core): update 2022-07-28 23:14:25 +02:00
.gitignore BREAKING CHANGE(core): switch to esm 2022-07-28 22:35:16 +02:00
.gitlab-ci.yml BREAKING CHANGE(core): switch to esm 2022-07-28 22:35:16 +02:00
npmextra.json update npmextra.json: githost 2024-04-01 19:59:44 +02:00
package-lock.json 3.0.2 2022-07-28 23:14:25 +02:00
package.json update npmextra.json: githost 2024-03-30 21:48:44 +01:00
readme.md fix(core): update 2022-07-28 23:03:29 +02:00

@pushrocks/smartspawn

smart subprocess handling

Status for master

Status Category Status Badge
GitLab Pipelines pipeline status
GitLab Pipline Test Coverage coverage report
npm npm downloads per month
Snyk Known Vulnerabilities
TypeScript Support TypeScript
node Support node
Code Style Code Style
PackagePhobia (total standalone install weight) PackagePhobia
PackagePhobia (package size on registry) PackagePhobia
BundlePhobia (total size when bundled) BundlePhobia
Platform support Supports Windows 10 Supports Mac OS X

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


Contribution

We are always happy for code contributions. If you are not the code contributing type that is ok. Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: You can contribute one time or contribute monthly. :)

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