Skip to content
This repository has been archived by the owner on Oct 31, 2018. It is now read-only.

Commit

Permalink
document autoDestroy
Browse files Browse the repository at this point in the history
  • Loading branch information
dominictarr committed Apr 13, 2013
1 parent 1cabed2 commit c4520e5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions readme.markdown
Expand Up @@ -38,6 +38,26 @@ through(function write(data) {
})
```

## Extended Options

You will probably not need these 99% of the time.

### autoDestroy=false

By default, `through` emits close when the writable
and readable side of the stream has ended.
If that is not desired, set `autoDestroy=false`.

``` js
var through = require('through')

//like this
var ts = through(write, end, {autoDestroy: false})
//or like this
var ts = through(write, end)
ts.autoDestroy = false
```

## License

MIT / Apache2

0 comments on commit c4520e5

Please sign in to comment.