Permalink
Browse files

docs

  • Loading branch information...
1 parent 31e9ba0 commit b2f9349be2197ce581ce68a76d9d330f6b58133c @Raynos committed Sep 29, 2012
Showing with 15 additions and 0 deletions.
  1. +15 −0 README.md
View
@@ -4,6 +4,21 @@ Combine multiple readable streams into one
## Example
+```
+var from = require("read-stream").fromArray
+ , to = require("write-stream").toArray
+ , concat = require("lazy-concat-stream")
+
+var one = from([1])
+ , two = from([2, 3])
+ , three = from([4, 5, 6])
+
+concat(one, two, three)
+ .pipe(to(function (list) {
+ console.log("list", list)
+ }))
+```
+
## Installation
`npm install lazy-concat-stream`

0 comments on commit b2f9349

Please sign in to comment.