Our fork of express-limiter
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 c63b459cff now with tests :) 11 years ago
tests now with tests :) 11 years ago
.gitignore eureka 11 years ago
LICENSE Initial commit 11 years ago
Makefile testing setup 11 years ago
README.md include redis dev dep 11 years ago
index.js now with tests :) 11 years ago
package.json now with tests :) 11 years ago

README.md

Express rate-limitter

Rate limiting middleware for Express applications built on redis

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
})