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