Answers for "npm install process env"

8

node dotenv

require('dotenv').config();

console.log(process.env.MY_ENV_VAR);
Posted by: Guest on October-07-2020
1

.env

require('dotenv').config()
const dotenv=require('dotenv');

//Usuage
process.env.NAME
Posted by: Guest on August-06-2020

Browse Popular Code Answers by Language