stream-volume

1.0.2 • Public • Published

stream-volume

Measure the total volume of data a stream emits.

build status

Example

var Volume = require('stream-volume');

src
.pipe(Volume(function(vol){
  console.log('Volume in bytes: %s', vol);
}))
.pipe(dest);

Installation

$ npm install stream-volume

API

Volume(cb)

Create a Transform stream that passes through all data and calls cb with the total volume in bytes.

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i stream-volume

Weekly Downloads

0

Version

1.0.2

License

MIT

Last publish

Collaborators

  • juliangruber