You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dustin Diaz
f5e0de0960
|
10 years ago | |
---|---|---|
.gitignore | 10 years ago | |
LICENSE | 10 years ago | |
Makefile | 10 years ago | |
README.md | 10 years ago | |
index.js | 10 years ago | |
package.json | 10 years ago |
README.md
Express rate-limitter
Rate limiting middleware for Express applications.
var limitter = require('expa').limitter(app, client)
limitter({
path: '/like',
method: 'get',
lookup: ['req.user.id', 'req.connection.remoteAddress'],
total: 100,
expire: 1000 * 60 * 60
})