Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidCai1111 committed Apr 12, 2016
1 parent 1b8fba6 commit 183eb29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ npm install concat-streams
'use strict'
const concatStream = require('concat-streams')

concatStream([stream1, stream2, stream3])
concatStream([stream1, stream2, stream3]).on('error', console.error)
// Equal to:
// stream1.pipe(stream2)
// stream2.pipe(stream3)
// stream1.on('error', (err) => stream2.emit(err))
// stream2.on('error', (err) => stream3.emit(err))
// stream3.on('error', console.error)
```

## API
Expand Down

0 comments on commit 183eb29

Please sign in to comment.