-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
70 lines (70 loc) · 2.04 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"name": "effective-cache",
"version": "0.1.0",
"description": "Rate limit guard is a library that helps to prevent overload of the Node.js server. This plugin can help to reduce the timing of the execution of requests. Usually, if you have more requests than your applications can handle it creates a big queue of requests, that consumes more memory and more CPU, a lot of requests will be executed in parallel. As a result, your server will be paralyzed. This library can help to prevent this problem by limiting the amount of executed requests and controlling the health of your server based on the event loop delay.",
"keywords": [
"cache",
"lru",
"memory cache"
],
"homepage": "https://github.com/Tom910/rate-limit-guard",
"repository": {
"type": "git",
"url": "[email protected]:Tom910/rate-limit-guard.git"
},
"publishConfig": {
"access": "public"
},
"files": [
"dist"
],
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.mjs"
},
"./s3-fifo/index": {
"require": "./dist/s3-fifo/index.js",
"import": "./dist/s3-fifo/index.mjs"
}
},
"types": "./dist/index.d.ts",
"tsup": {
"entryPoints": [
"src/index.ts",
"src/s3-fifo/index.ts"
],
"format": [
"cjs",
"esm"
],
"dts": true,
"treeshake": true,
"clean": true
},
"scripts": {
"build": "tsup",
"test": "jest",
"benchmark": "npm run benchmark:hitrate && npm run benchmark:perf",
"benchmark:hitrate": "tsx benchmark/hit-rate.ts",
"benchmark:perf": "tsx benchmark/hit-rate.ts",
"prepublishOnly": "pnpm run build"
},
"license": "MIT",
"devDependencies": {
"@types/jest": "^29.5.5",
"@types/node": "^18",
"jest": "^29.6.4",
"lru-cache": "^10.0.1",
"prettier": "^2.8.8",
"quick-lru": "^7.0.0",
"tiny-lru": "^11.2.3",
"tinybench": "^2.5.1",
"ts-jest": "^29.1.1",
"tsup": "^7.2.0",
"tsx": "^3.13.0",
"typescript": "^5.2.2"
}
}