fix example for #26

This commit is contained in:
Mathias Buus 2014-09-23 07:34:48 -07:00
parent 3bd4c7a0c3
commit e5d568971b

View file

@ -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() {