Skip to content

Express middleware to monitor the bandwidth of requests/responses.

Notifications You must be signed in to change notification settings

moghribalakrishna/express-bandwidth

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

express-bandwidth

Build Status

Express middleware to monitor the bandwidth of requests.

Limitations:

  1. If you use a reverse proxy that does compression / TLS termination, the bandwidth will not reflect that.

  2. The bandwidth figure doesn't currently include HTTP headers, only request/response body.

Install

npm install --save express-bandwidth express-transform

Usage

import transform from 'express-transform';
import bandwidth from 'express-bandwidth';

app.use(transform());

app.use(bandwidth((bw) => {
  console.log(bw.incoming);
  console.log(bw.outgoing);
}));

About

Express middleware to monitor the bandwidth of requests/responses.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%