Wondering what’s next for npm?Check out our public roadmap! »

    stream-counter

    1.0.0 • Public • Published

    stream-counter

    Keep track of how many bytes have been written to a stream.

    Usage

    var StreamCounter = require('stream-counter');
    var counter = new StreamCounter();
    counter.on('progress', function() {
      console.log("progress", counter.bytes);
    });
    fs.createReadStream('foo.txt').pipe(counter);

    Keywords

    none

    Install

    npm i stream-counter

    DownloadsWeekly Downloads

    191,584

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • avatar