node js read .env file code example Example 1: .env require('dotenv').config() Example 2: how to use dotenv in javascript dotenv file use