Answers for "how to use dotenv in express"

1

what is dotenv in nodejs

this module is used to access environment variable in our application
Posted by: Guest on January-07-2022
0

dotenv in node js

This is used to add a specific path to locate the .env file if we use like this 
.config() then this is finding .env file in our cwd - current working directory.


require('dotenv').config({ path: '/custom/path/to/.env' })
Posted by: Guest on February-11-2022

Browse Popular Code Answers by Language