stream-counter

WebJar for stream-counter

License

License

BSD
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

stream-counter
Last Version

Last Version

0.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

stream-counter
WebJar for stream-counter
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/andrewrk/node-stream-counter

Download stream-counter

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/stream-counter/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>stream-counter</artifactId>
    <version>0.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/stream-counter/
implementation 'org.webjars.npm:stream-counter:0.2.0'
// https://jarcasting.com/artifacts/org.webjars.npm/stream-counter/
implementation ("org.webjars.npm:stream-counter:0.2.0")
'org.webjars.npm:stream-counter:jar:0.2.0'
<dependency org="org.webjars.npm" name="stream-counter" rev="0.2.0">
  <artifact name="stream-counter" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='stream-counter', version='0.2.0')
)
libraryDependencies += "org.webjars.npm" % "stream-counter" % "0.2.0"
[org.webjars.npm/stream-counter "0.2.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : readable-stream jar [1.1.8,1.2)

Project Modules

There are no modules declared in this project.

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);

Versions

Version
0.2.0