-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
85 lines (85 loc) · 2.38 KB
/
Copy pathpackage.json
File metadata and controls
85 lines (85 loc) · 2.38 KB
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
76
77
78
79
80
81
82
83
84
85
{
"name": "basic-restful-api",
"version": "1.0.0",
"description": "A professional REST API implementation with comprehensive security features",
"main": "dist/server.js",
"scripts": {
"start": "node dist/server.js",
"dev": "nodemon src/server.ts",
"build": "tsc",
"test": "jest",
"test:watch": "jest --watch",
"test:security": "jest security.test.ts",
"test:coverage": "jest --coverage",
"lint": "eslint . --ext .ts",
"lint:fix": "eslint . --ext .ts --fix",
"format": "prettier --write \"src/**/*.ts\"",
"security-check": "bash scripts/run-security-checks.sh",
"security-audit": "npm audit && node scripts/security-audit.js",
"prepare": "husky install",
"precommit": "lint-staged",
"docker:build": "docker build -t basic-restful-api .",
"docker:run": "docker run -p 3000:3000 basic-restful-api"
},
"lint-staged": {
"*.ts": [
"eslint --fix",
"prettier --write"
]
},
"keywords": [
"rest",
"api",
"security",
"typescript",
"express"
],
"author": "lovingthemoo",
"license": "ISC",
"dependencies": {
"@types/rate-limit-redis": "^3.0.0",
"connect-redis": "^7.1.0",
"cors": "^2.8.5",
"csrf-csrf": "^2.2.4",
"dotenv": "^16.3.1",
"express": "^4.18.2",
"express-rate-limit": "^7.1.0",
"express-session": "^1.17.3",
"express-validator": "^7.0.1",
"helmet": "^7.0.0",
"rate-limit-redis": "^4.2.0",
"redis": "^4.6.10",
"swagger-jsdoc": "^6.2.8",
"swagger-ui-express": "^5.0.0"
},
"devDependencies": {
"@types/cors": "^2.8.14",
"@types/express": "^4.17.17",
"@types/express-session": "^1.17.7",
"@types/jest": "^29.5.5",
"@types/jsdom": "^21.1.7",
"@types/node": "^20.6.2",
"@types/supertest": "^2.0.12",
"@types/swagger-jsdoc": "^6.0.1",
"@types/swagger-ui-express": "^4.1.3",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@typescript-eslint/parser": "^6.7.0",
"eslint": "^8.49.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-security": "^1.7.1",
"husky": "^8.0.3",
"jest": "^29.7.0",
"jsdom": "^26.0.0",
"lint-staged": "^14.0.1",
"nodemon": "^3.0.1",
"prettier": "^3.0.3",
"supertest": "^6.3.3",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
},
"engines": {
"node": ">=14.0.0"
}
}