1.0.1 • Published 7 years ago

express-throttle-bandwidth v1.0.1

Weekly downloads
45
License
MIT
Repository
github
Last release
7 years ago

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.