Print all the Environment variables – .env values display

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();


About the Author: smartcoder

You might like

Leave a Reply

Your email address will not be published. Required fields are marked *