node with dotenv code example
Example 1: node dotenv
require('dotenv').config();
console.log(process.env.MY_ENV_VAR);
Example 2: dotenv
require('dotenv').config()
require('dotenv').config();
console.log(process.env.MY_ENV_VAR);
require('dotenv').config()