Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

stream-conclusion

0.0.4 • Public • Published

stream-conclusion

Analyses streams to summarize the number of chunks and bytes passed

The given callback will be called when the stream ends, and provides an argument with the properties chunks and bytes.

Example:

var streamConclusion = require('stream-conclusion');
 
function conclusion(result) {
  console.log(result.bytes + " bytes passed through in " + result.chunks + " chunks");
}
 
inStream.pipe(streamConclusion(conclusion)).pipe(outStream);

Install

npm i stream-conclusion

DownloadsWeekly Downloads

0

Version

0.0.4

License

MIT

Last publish

Collaborators

  • avatar