GeezerVison is showing github.com — node-app/node_modules/stream-counter at main · storemap/node-app
/
stream-counter
/Copy pathDirectory actions
More options
More optionsDirectory actions
More options
More options/
stream-counter
/Copy pathFolders and files
| Name | Name | Last commit message | Last commit date |
|---|
parent directory.. |
| | | |
| | | |
| | | |
| | | |
| | | |
|
Keep track of how many bytes have been written to a stream.
var StreamCounter = require('stream-counter');
var counter = new StreamCounter();
counter.on('progress', function() {
console.log("progress", counter.bytes);
});
fs.createReadStream('foo.txt').pipe(counter);