npm dotenv dev code example Example: dotenv npm //In CMD npm i dotenv //in JS file require('dotenv').config();