headerparser/package.json
Zaid Ali 38d1c3b9f6
fix: add dotenv package for environment (#18)
* Added "dotenv" dependency to package.json

Since the project is using .env file for fetching the port, it had no "dotenv" dependency. This creates confusion when "process.env.PORT" doesn't work. I hope this is convenient for beginners 👍

* Update server.js

Added a line to import `dotenv` dependency to server.js.

* Update package-lock.json

I have added the dotenv dependency to package-lock.json file as requested. I hope it's good now
2021-01-18 23:37:17 +00:00

25 lines
433 B
JSON

{
"name": "request_header",
"version": "0.0.1",
"description": "API project for freeCodeCamp",
"main": "server.js",
"scripts": {
"start": "node server.js"
},
"dependencies": {
"express": "^5.0.0-alpha.2",
"cors": "^2.8.1",
"dotenv": "^8.2.0"
},
"repository": {
"type": "git",
"url": "https://hyperdev.com/#!/project/welcome-project"
},
"keywords": [
"node",
"hyperdev",
"express"
],
"license": "MIT"
}