dotenv install npm code example
Example 1: dotenv npm
//In CMD
npm i dotenv
//in JS file
require('dotenv').config();
Example 2: how to install dotenv
const db = require('db')db.connect({ host: process.env.DB_HOST, username: process.env.DB_USER, password: process.env.DB_PASS})