@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.
Files changed (2) hide show
  1. package/README.md +12 -0
  2. 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-node-forge/api-rate-limit",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "A simple and efficient API rate limiter for JavaScript/TypeScript applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",