diff --git a/README.md b/README.md index 39594a3..98651e2 100644 --- a/README.md +++ b/README.md @@ -54,10 +54,11 @@ extract.on('entry', function(header, stream, callback) { // stream is the content body (might be an empty stream) // call next when you are done with this entry - stream.resume() // just auto drain the stream stream.on('end', function() { callback() // ready for next entry }) + + stream.resume() // just auto drain the stream }) extract.on('finish', function() {