express-detect-burst
v0.0.1
Published
express middleware detecting burst access
Downloads
4
Maintainers
Readme
abnormal access detection middleware of express.
Install
Usage
var burst = require( 'express-detect-burst' );
// if over 100 request arrived in 60000 milisecond (1 min)
// callback called
app.use( burst( {
threshold: 100,
interval: 60000,
callback: function () {
console.log( 'burst' );
}
} ) );