🚀 Good news for Node devs - fewer deps! You no longer have to install dotenv or nodemon. Node added native support for .env files (since v20.6.0) and a watch mode (introduced as experimental in v18.11.0, stable in later v20+/v22+ releases). Run your app with one command: node --env-file=.env --watch app.js Or add a script in package.json: "scripts": { "start": "node --env-file=.env --watch app.js" } ✅ What this means: .env stays in your repo, but Node will load it — no dotenv import needed. Node restarts on file changes — no nodemon required. 🔥 Why this is nice: Fewer dependencies Smaller node_modules Cleaner setup and faster startup Give it a try, just make sure you're on Node ≥ 20.6.0 for full .env support (and use at least v18.11.0+ to access --watch). #NodeJS #JavaScript #DevTips #WebDev #Backend
Thanks for the update.
From what I’ve seen, Laravel has had .env, models, and controllers built-in for a long time. It’s nice to see Node.js also evolving and adding similar features like a default env package in the new update. Both ecosystems are improving in their own ways.