https://github.com/elsehow/kefir-child-process
child_process.spawn and child_process.exec as kefir streams
https://github.com/elsehow/kefir-child-process
Last synced: about 1 year ago
JSON representation
child_process.spawn and child_process.exec as kefir streams
- Host: GitHub
- URL: https://github.com/elsehow/kefir-child-process
- Owner: elsehow
- Created: 2015-10-12T07:43:14.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-21T18:14:10.000Z (over 10 years ago)
- Last Synced: 2025-03-04T18:46:58.452Z (over 1 year ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# kefir-child-process
`child_process.spawn` and `child_process.exec` as [kefir](https://rpominov.github.io/kefir/) streams 😎
## installation
`npm install kefir-child-process`
## usage
```javascript
var kefir_proc = require('kefir-child-process')
var executions = kefir_proc.spawn('tail', ['-f', 'debug.log'])
var d = executions.debounce(3000)
executions.filter(500error).throttle(500).log()
```
## API
see the [node child_process docs](https://nodejs.org/api/child_process.html), which this API matches.
### kefir_proc.execute(command, [options])
### kefir_proc.spawn(command, [args], [options])