Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
walheresq authored Jul 31, 2017
1 parent 25ed267 commit 76cb708
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ var video = youtubedl('http://www.youtube.com/watch?v=90AiXO1pAiA',
// Will be called when the download starts.
video.on('info', function(info) {
console.log('Download started');
console.log('filename: ' + info.filename);
console.log('filename: ' + info._filename);
console.log('size: ' + info.size);
});

video.pipe(fs.createWriteStream('myvideo.mp4'));
video.pipe(fs.createWriteStream('info._filename'));
```

It will produce an output that looks like the following when ran.
Expand Down

0 comments on commit 76cb708

Please sign in to comment.