From e5d568971bb25f6d74f1be4b1e1387bfc23355d0 Mon Sep 17 00:00:00 2001 From: Mathias Buus Date: Tue, 23 Sep 2014 07:34:48 -0700 Subject: [PATCH] fix example for #26 --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() {