Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

node -r dotenv/config

const config = require('dotenv-config')();
 
console.log(config.test); // localhost
 
module.exports = config;
 
PREVIOUS NEXT
Tagged: #node
ADD COMMENT
Topic
Name
5+3 =