Update README.md

Mention the need to drain entry streams or else the main stream gets backpressure
This commit is contained in:
Stephen Whitmore 2016-06-15 11:42:33 -07:00 committed by GitHub
parent f50e71b53a
commit 4210140046

View file

@ -75,6 +75,8 @@ extract.on('finish', function() {
pack.pipe(extract)
```
The tar archive is streamed sequentially, meaning you **must** drain each entry's stream as you get them or else the main extract stream will receive backpressure and stop reading.
## Headers
The header object using in `entry` should contain the following properties.