@pushrocks/smartspawn
smart subprocess handling
Last updated a year ago by lossless .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @pushrocks/smartspawn 
SYNC missed versions from official npm registry.

@pushrocks/smartspawn

smart subprocess handling

Availabililty and Links

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

Current Tags

  • 2.0.9                                ...           latest (a year ago)

7 Versions

  • 2.0.9                                ...           a year ago
  • 2.0.8                                ...           a year ago
  • 2.0.6                                ...           a year ago
  • 2.0.4                                ...           2 years ago
  • 2.0.3                                ...           2 years ago
  • 2.0.2                                ...           2 years ago
  • 2.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (3)
Dev Dependencies (7)

Copyright 2014 - 2016 © taobao.org |