Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/junosuarez/exec-stream
npm module: stream to a child process
https://github.com/junosuarez/exec-stream
Last synced: about 2 months ago
JSON representation
npm module: stream to a child process
- Host: GitHub
- URL: https://github.com/junosuarez/exec-stream
- Owner: junosuarez
- License: mit
- Created: 2013-07-16T04:18:54.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-04-07T05:50:46.000Z (almost 11 years ago)
- Last Synced: 2024-12-24T23:30:29.281Z (about 2 months ago)
- Language: JavaScript
- Size: 650 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-nodejs - exec-stream - stream to a child process. (Repository / Streams)
README
# exec-stream
stream to a child process## usage
```js
var execStream = require('exec-stream')// a strawman wrapper of `cat`
process.stdin
.pipe(execStream('cat', process.argv.slice(2)))
.pipe(process.stdout)
```
available as `example.js` in the package root.## api
`execStream: (command: String, args?: Array, opts?: Object) => DuplexStream`
The returned [`DuplexStream`](http://nodejs.org/api/stream.html#stream_class_stream_duplex) is the stdin and stdout of the execd process.
## installation
$ npm install exec-stream
## running the tests
From package root:
$ npm install
$ npm test## contributors
- jden
## license
MIT. (c) 2013 jden . See LICENSE.md