@the-node-forge/api-rate-limit 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/package.json +1 -1
package/README.md
CHANGED
@@ -69,7 +69,13 @@ Easily integrate with an **Express API**.
|
|
69
69
|
|
70
70
|
```typescript
|
71
71
|
import express from 'express';
|
72
|
+
// ESM
|
72
73
|
import { RateLimiter, rateLimitMiddleware } from '@the-node-forge/api-rate-limit';
|
74
|
+
// or CommonJs
|
75
|
+
const {
|
76
|
+
RateLimiter,
|
77
|
+
rateLimitMiddleware,
|
78
|
+
} = require('@the-node-forge/api-rate-limit');
|
73
79
|
|
74
80
|
const app = express();
|
75
81
|
|
@@ -94,7 +100,13 @@ Easily integrate with an **Express API**.
|
|
94
100
|
|
95
101
|
```typescript
|
96
102
|
import express from 'express';
|
103
|
+
// ESM
|
97
104
|
import { RateLimiter, rateLimitMiddleware } from '@the-node-forge/api-rate-limit';
|
105
|
+
// or CommonJs
|
106
|
+
const {
|
107
|
+
RateLimiter,
|
108
|
+
rateLimitMiddleware,
|
109
|
+
} = require('@the-node-forge/api-rate-limit');
|
98
110
|
|
99
111
|
const app = express();
|
100
112
|
|
package/package.json
CHANGED