Answers for "do i need to install dotenv for node js to use env key api"

8

node dotenv

require('dotenv').config();

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

Code answers related to "do i need to install dotenv for node js to use env key api"

Browse Popular Code Answers by Language