node js how to use dotenv files code example
Example 1: node dotenv
require('dotenv').config();
console.log(process.env.MY_ENV_VAR);
Example 2: install dotenv node js
npm install dotenv --save
require('dotenv').config();
console.log(process.env.MY_ENV_VAR);
npm install dotenv --save