Skip to content

Commit

Permalink
fix code on README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
stevemao committed Apr 9, 2015
1 parent b2e5411 commit 817fad5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Expand Up @@ -21,7 +21,6 @@ $ npm install --save-dev hook-writable-stream
var hookWritableStream = require('hook-writable-stream');
var hook = hookWritableStream(process.stdout, false, function(string) {
//=> string === 'hooked!\n'
done();
});

console.log('hooked!');
Expand All @@ -40,7 +39,7 @@ var hook = hookWritableStream(process.stdout, false);
var stream = hook.stream;
stream.pipe(through(function(chunk, enc, cb) {
//=> chunk.toString() === 'hooked!\n'
cb();
cb(chunk);
}));

console.log('hooked!');
Expand Down

0 comments on commit 817fad5

Please sign in to comment.