dotenv in node js es7 code example Example: node dotenv require('dotenv').config(); console.log(process.env.MY_ENV_VAR);