Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/airtoxin/express-detect-burst
abnormal access detection middleware of express
https://github.com/airtoxin/express-detect-burst
Last synced: about 9 hours ago
JSON representation
abnormal access detection middleware of express
- Host: GitHub
- URL: https://github.com/airtoxin/express-detect-burst
- Owner: airtoxin
- License: mit
- Created: 2015-03-04T13:31:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-04-26T15:15:12.000Z (over 9 years ago)
- Last Synced: 2024-10-13T13:14:42.206Z (24 days ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#express-detect-burst [![npm version](https://badge.fury.io/js/express-detect-burst.svg)](http://badge.fury.io/js/express-detect-burst)
abnormal access detection middleware of express.
# Install
[![NPM](https://nodei.co/npm/express-detect-burst.png)](https://npmjs.org/package/express-detect-burst)
# Usage
```javascript
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' );
}
} ) );
```