expand-dotenv

expand-dotenv adds variable expansion on top of dotenv. If you find yourself needing to expand environment variables already existing on your machine, then expand-dotenv is your tool.
Install
npm install dotenv --savenpm install expand-dotenv --save
Usage
As early as possible in your application, require dotenv and expand-dotenv, and wrap expand-dotenv around dotenv.
var dotenv = var dotenvExpand = var myEnv = dotenv
See test/.env for examples of variable expansion in your .env
file.