Photo by Alex Chumak on Unsplash

If you need a more maintainable and secure code. the DotEnv package allows you to offset your environment variables more easily and simpler to use with Node.
DotEnv is a lightweight npm package that automatically loads environment variables from an .env file into the process.envobject.

How to Create a .env File

How to Access the Environment Variables

To modify the value of one of your variables, all you have to do is modify the .env file.

Important

DevAhmedCoder