Because forgetting .env variables is basically your hobby.
npm install env-validate-sarcastically---
DATABASE_URL. env-validate-sarcastically does one thing: it checks if your .env file has all the required variables from .env.example and screams at you if it doesn’t. Yes, that's right. It spoon-feeds you the information your own brain refuses to retain.
---
``sh`
npm install env-validate-sarcastically`
---Usage
$3
Put all the required environment variables in it:ini`
PORT=3000
DATABASE_URL=your_database_url
JWT_SECRET=your_secret_key
ini
PORT=3000
DATABASE_URL=your_database_url
Oops, forgot JWT_SECRET. Enjoy debugging!
`$3
`js
const validateEnv = require("env-validate-sarcastically");
validateEnv();
`4. Behold the judgmental error message:
`swift
❌ Missing required environment variables: JWT_SECRET
``---
---
---