express-rate-limit
Advanced tools
Comparing version 3.4.0 to 3.4.1
{ | ||
"name": "express-rate-limit", | ||
"version": "3.4.0", | ||
"version": "3.4.1", | ||
"description": "Basic IP rate-limiting middleware for Express. Use to limit repeated requests to public APIs and/or endpoints such as password reset.", | ||
@@ -38,3 +38,3 @@ "homepage": "https://github.com/nfriedly/express-rate-limit", | ||
"devDependencies": { | ||
"eslint": "^5.2.0", | ||
"eslint": "^5.15.3", | ||
"eslint-config-prettier": "^2.9.0", | ||
@@ -41,0 +41,0 @@ "eslint-plugin-prettier": "^2.6.2", |
@@ -94,4 +94,8 @@ # Express Rate Limit | ||
A `req.rateLimit` property is added to all requests with the `limit`, `current`, and `remaining` number of requests for usage in your application code and, if the store provides it, a `resetTime` Date object. | ||
**Note:** most stores will require additional configuration, such as custom prefixes, when using multiple instances. The default built-in memory store is an exception to this rule. | ||
## Request API | ||
A `req.rateLimit` property is added to all requests with the `limit`, `current`, and `remaining` number of requests and, if the store provides it, a `resetTime` Date object. These may be used in your application code to take additional actions or inform the user of their status. | ||
## Configuration options | ||
@@ -117,3 +121,3 @@ | ||
May be a String, JSON object, or any other value that Express's [req.send](https://expressjs.com/en/4x/api.html#res.send) supports. | ||
May be a String, JSON object, or any other value that Express's [res.send](https://expressjs.com/en/4x/api.html#res.send) supports. | ||
@@ -120,0 +124,0 @@ Defaults to `'Too many requests, please try again later.'` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16272
281