In Powershell,
$Env:CONF = 'Hello, World!'
npm install dotenv --save
In your project root add .env file. Make sure you have the following in your .env file
CONF=SOME_DATA
In your js file add this
require('dotenv').config()
console.log(process.env.CONF) // remove this after you've confirmed it working