|
Last change
on this file since 9af201e was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
1.0 KB
|
| Line | |
|---|
| 1 | # duplexer
|
|---|
| 2 |
|
|---|
| 3 | [![build status][1]][2] [![dependency status][3]][4]
|
|---|
| 4 |
|
|---|
| 5 | [![browser support][5]][6]
|
|---|
| 6 |
|
|---|
| 7 | Creates a duplex stream
|
|---|
| 8 |
|
|---|
| 9 | Taken from [event-stream][7]
|
|---|
| 10 |
|
|---|
| 11 | ## duplex (writeStream, readStream)
|
|---|
| 12 |
|
|---|
| 13 | Takes a writable stream and a readable stream and makes them appear as a readable writable stream.
|
|---|
| 14 |
|
|---|
| 15 | It is assumed that the two streams are connected to each other in some way.
|
|---|
| 16 |
|
|---|
| 17 | ## Example
|
|---|
| 18 |
|
|---|
| 19 | ```js
|
|---|
| 20 | var cp = require('child_process')
|
|---|
| 21 | , duplex = require('duplexer')
|
|---|
| 22 | , grep = cp.exec('grep Stream')
|
|---|
| 23 |
|
|---|
| 24 | duplex(grep.stdin, grep.stdout)
|
|---|
| 25 | ```
|
|---|
| 26 |
|
|---|
| 27 | ## Installation
|
|---|
| 28 |
|
|---|
| 29 | `npm install duplexer`
|
|---|
| 30 |
|
|---|
| 31 | ## Tests
|
|---|
| 32 |
|
|---|
| 33 | `npm test`
|
|---|
| 34 |
|
|---|
| 35 | ## Contributors
|
|---|
| 36 |
|
|---|
| 37 | - Dominictarr
|
|---|
| 38 | - Raynos
|
|---|
| 39 | - samccone
|
|---|
| 40 |
|
|---|
| 41 | ## MIT Licenced
|
|---|
| 42 |
|
|---|
| 43 | [1]: https://secure.travis-ci.org/Raynos/duplexer.png
|
|---|
| 44 | [2]: https://travis-ci.org/Raynos/duplexer
|
|---|
| 45 | [3]: https://david-dm.org/Raynos/duplexer.png
|
|---|
| 46 | [4]: https://david-dm.org/Raynos/duplexer
|
|---|
| 47 | [5]: https://ci.testling.com/Raynos/duplexer.png
|
|---|
| 48 | [6]: https://ci.testling.com/Raynos/duplexer
|
|---|
| 49 | [7]: https://github.com/dominictarr/event-stream#duplex-writestream-readstream
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.