Prevent Dev Env Issues with Dotenv Audit

I just published my first npm package — dotenv-audit Ever had your app crash in production because someone forgot to set an environment variable? I built a tool that solves this. It scans your actual codebase, finds every process.env usage, and tells you exactly what's missing — with file paths and line numbers. No schema to write. No config needed. Just run: npx dotenv-audit --ask What it does: Scans .js, .ts, .jsx, .tsx, .vue, .svelte files automatically Detects all patterns — dot access, bracket access, destructuring, Vite env Generates .env files with smart placeholder values Auto-detects your database (MongoDB, PostgreSQL, MySQL) from package.json Supports monorepos — creates separate .env per service Filters out framework built-ins (Vite's DEV, MODE, etc.) Zero dependencies. 15KB package size. Interactive mode asks you step by step: Want an ENV_SETUP.md with all missing variables? ✓ Want a .env file generated with smart defaults? ✓ Check it out: https://lnkd.in/gqRAPjGN Would love to hear your feedback! #nodejs #npm #javascript #typescript #opensource #webdevelopment #developer #dotenv

  • graphical user interface, text, application

To view or add a comment, sign in

Explore content categories