1.0.4 • Published 4 years ago

rxjs-child-process v1.0.4

Weekly downloads
5
License
ISC
Repository
github
Last release
4 years ago

rxjs-child-process

NodeJS child_process fork and spawn as rxjs6+ observables.

NPM

Installation

npm install --save rxjs-child-process

// Or

yarn add rxjs-child-process

spawn

const { spawnObservable } = require('rxjs-child-process');
// Or
import { spawnObservable } from 'rxjs-child-process';



spawnObservable('rm', ['-rf', '/var']).subscribe(
  msg => console.log(msg),
  err => console.err(err),
);

fork

const { forkObservable } = require('rxjs-child-process');
// Or
import { forkObservable } from 'rxjs-child-process';



forkObservable('./script.js', ['--path', './some/path']).subscribe(
  msg => console.log(msg),
  err => console.err(err),
);
1.0.4

4 years ago

1.0.32

4 years ago

1.0.31

4 years ago

1.0.3

4 years ago

1.0.21

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago