Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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' })
Source by www.npmjs.com #
 
PREVIOUS NEXT
Tagged: #dotenv #node #js
ADD COMMENT
Topic
Name
2+2 =