-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
75 lines (75 loc) · 2.33 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
71
72
73
74
75
{
"name": "rate-limit-guard",
"version": "1.0.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": [
"rate limit",
"Anti DDOS"
],
"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"
},
"./adapters/fastify": {
"require": "./dist/adapters/fastify.js",
"import": "./dist/adapters/fastify.mjs"
},
"./adapters/express": {
"require": "./dist/adapters/express.js",
"import": "./dist/adapters/express.mjs"
}
},
"types": "./dist/index.d.ts",
"tsup": {
"entryPoints": [
"src/index.ts",
"src/adapters/fastify.ts",
"src/adapters/express.ts"
],
"format": [
"cjs",
"esm"
],
"dts": true,
"treeshake": true,
"clean": true
},
"scripts": {
"build": "tsup",
"test": "jest",
"example:fastify": "ts-node --compiler-options \"{\\\"module\\\":\\\"commonjs\\\"}\" examples/fastify/index.ts",
"example:express": "ts-node --compiler-options \"{\\\"module\\\":\\\"commonjs\\\"}\" examples/express/index.ts",
"prepublishOnly": "pnpm run build"
},
"license": "MIT",
"devDependencies": {
"@types/express": "^4.17.17",
"@types/jest": "^29.5.4",
"@types/node": "^18",
"@types/on-finished": "^2.3.1",
"express": "^4.18.2",
"fastify": "^4.22.0",
"fastify-plugin": "^4.5.1",
"jest": "^29.6.4",
"on-finished": "^2.4.1",
"prettier": "^2.8.8",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"tsup": "^7.2.0",
"typescript": "^5.2.2"
}
}