-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
25 lines (25 loc) · 1.25 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
{
"name": "identity-management",
"version": "1.0.0",
"description": "A Node.js project that centralizes error handling in an application by implementing a middleware. This middleware is responsible for catching all errors thrown by the application and returning a custom error message along with the relevant HTTP status code. If any errors go unhandled, a default internal server error (HTTP 500) with a custom message will be assigned. Additionally, all errors are logged using Winston logger and stored in a file. The logs are automatically deleted after 3 days, ensuring consistent, structured, and comprehensive error handling in the application. Upon running the project, it opens a Swagger documentation page displaying all the requests, their descriptions, and the methods available in the application.",
"main": "app.js",
"scripts": {
"live": "node app.js",
"dev": "nodemon app.js"
},
"author": "",
"license": "MIT",
"dependencies": {
"dotenv": "^16.0.3",
"express": "^4.18.2",
"express-async-errors": "^3.1.1",
"http-status-codes": "^2.2.0",
"swagger-ui-express": "^4.6.0",
"winston": "^3.8.2",
"winston-daily-rotate-file": "^4.7.1",
"yamljs": "^0.3.0"
},
"devDependencies": {
"nodemon": "^2.0.20"
}
}