3
3
<div align =" center " >
4
4
5
5
[ ![ tests] ( https://github.com/express-rate-limit/cluster-memory-store/actions/workflows/ci.yaml/badge.svg )] ( https://github.com/express-rate-limit/cluster-memory-store/actions/workflows/ci.yaml )
6
- [ ![ npm version] ( https://img.shields.io/npm/v/cluster-memory-store.svg )] ( https://npmjs.org/package/cluster-memory-store ' View this project on NPM ')
7
- [ ![ npm downloads] ( https://img.shields.io/npm/dm/cluster-memory-store )] ( https://www.npmjs.com/package/cluster-memory-store )
6
+ [ ![ npm version] ( https://img.shields.io/npm/v/@express-rate-limit/ cluster-memory-store.svg )] ( https://npmjs.org/package/@express-rate-limit /cluster-memory-store ' View this project on NPM ')
7
+ [ ![ npm downloads] ( https://img.shields.io/npm/dm/@express-rate-limit/ cluster-memory-store )] ( https://www.npmjs.com/package/@express-rate-limit /cluster-memory-store )
8
8
9
9
A memory store for the
10
10
[ ` express-rate-limit ` ] ( https://github.com/express-rate-limit/express-rate-limit )
@@ -15,26 +15,12 @@ middleware made for use with the
15
15
16
16
## Installation
17
17
18
- From the npm registry:
19
-
20
- ``` sh
21
- # Using npm
22
- > npm install @express-rate-limit/cluster-memory-store
23
- # Using yarn or pnpm
24
- > yarn/pnpm add @express-rate-limit/cluster-memory-store
25
- ```
26
-
27
- From Github Releases:
28
-
29
18
``` sh
30
- # Using npm
31
- > npm install https://github.com/express-rate-limit/cluster-memory-store/releases/download/v{version}/cluster-memory-store.tgz
32
- # Using yarn or pnpm
33
- > yarn/pnpm add https://github.com/express-rate-limit/cluster-memory-store/releases/download/v{version}/cluster-memory-store.tgz
19
+ npm install @express-rate-limit/cluster-memory-store
34
20
```
35
21
36
- Replace ` {version} ` with the version of the package that you want to your, e.g.:
37
- ` 1.0.0 ` .
22
+ ( [ Alternate installation methods ] ( https://github.com/express-rate-limit/cluster-memory-store/wiki/Installation-Methods ) -
23
+ pnpm, yarn, Github Releases, etc.)
38
24
39
25
## Usage
40
26
@@ -63,7 +49,8 @@ const limiter = rateLimit({
63
49
app .use (limiter )
64
50
```
65
51
66
- See the ` example/ ` folder for a complete, working example.
52
+ See the ` example/ ` folder for a
53
+ [ complete, working example] ( https://github.com/express-rate-limit/cluster-memory-store/tree/main/example ) .
67
54
68
55
## Configuration
69
56
0 commit comments