First of all run this in your terminal
npm i dotenv
then on the top of your main file
require("dotenv").config();
and then u can use your env vars like
process.env.DISCORD_JS_BOT_TOKEN
// .env
your_args = your_secret
// your_file.js
require("dotenv").config();
const your_args = process.env.your_args;
// OR
const your_args = process.env["your_args"];
NODE_ENV=development
PORT=8626
# Set your database/API connection information here
API_KEY=**************************
API_URL=**************************