Socket
Book a DemoInstallSign in
Socket

stream-volume

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stream-volume

Measure the total volume of data a stream emits

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 22 Nov 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts