https://github.com/lutangar/observable-child-process
Spawn observable child processes
https://github.com/lutangar/observable-child-process
child-process observable spawn
Last synced: about 1 year ago
JSON representation
Spawn observable child processes
- Host: GitHub
- URL: https://github.com/lutangar/observable-child-process
- Owner: lutangar
- License: mit
- Created: 2018-04-23T09:41:49.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-06T16:32:33.000Z (almost 8 years ago)
- Last Synced: 2025-03-01T16:04:14.101Z (about 1 year ago)
- Topics: child-process, observable, spawn
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# observable-child-process
Spawn observable child processes.
## Usage
For example to build and push a docker image:
```
const { spawn } = require('observable-child-process');
spawn('docker', ['build', '-t', 'myimage'], { env: { ...process.env, MY_CUSTOM_ENV_VARIABLE: 'foo' })
.concat(spawn('docker', ['push', 'myimage']));
```
## Resources
* https://nodejs.org/api/child_process.html
* http://reactivex.io/rxjs/class/es6/Observable.js~Observable.html
## Licence
MIT