peach a19a732be8 commit message | 2 年之前 | |
---|---|---|
.. | ||
test | 2 年之前 | |
.travis.yml | 2 年之前 | |
LICENCE | 2 年之前 | |
README.md | 2 年之前 | |
index.js | 2 年之前 | |
package.json | 2 年之前 |
Creates a duplex stream
Taken from event-stream
Takes a writable stream and a readable stream and makes them appear as a readable writable stream.
It is assumed that the two streams are connected to each other in some way.
var cp = require('child_process')
, duplex = require('duplexer')
, grep = cp.exec('grep Stream')
duplex(grep.stdin, grep.stdout)
npm install duplexer
npm test