express-throttle-bandwidth

1.0.1 • Public • Published

express-throttle-bandwidth

Throttle incoming request bandwidth

Usage

var throttle = require('express-throttle-bandwidth');
app.use(throttle(100000));

Options

throttle(bps)

Where bps is bytes per second, with a 10 milliseconds resolution.

Returns an express middleware function, if bps is <= 0 it does not throttle.

Package Sidebar

Install

npm i express-throttle-bandwidth

Weekly Downloads

193

Version

1.0.1

License

MIT

Last publish

Collaborators

  • kapouer