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