Count the size of a stream in bytes.
res object doesn't expose knowledge about the response size that it's
sending. By counting the bytes passed to
res it's now possible to retrieve
both the size (e.g. for logging) and properly set the
$ npm install size-stream
const httpNdjson =const sizeStream =const stdout =const pump =const http =http
size = sizeStream(res)
Emits the total stream size in bytes when the stream ends.