How to see all the Environment values in the node js app. Console and print all the given environment values in the node js app. Checking availability of all the values set in the .env
file.
Checkout: how to install and use dotenv package
Store Data in Environment Variables
- Create .env file in the root folder
Get All the Environment variables
const dotenv = require('dotenv').config(); console.log(dotenv.parsed);