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);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.