envlens is a tool designed to address issues with cluttered and outdated .env files in projects.
It helps identify which environment variables are used in the code, which ones are unused, and optionally checks for missing or extra keys in .env files.
envlens supports JavaScript and TypeScript backends like Node.js and Next.js.
Benefits include cleaning up unused variables, preventing secrets leakage, automating environment audits, and keeping .env.example synchronized with usage.
It offers a simple setup: install envlens with npm and run it using npx envlens to get a report on used, unused, and missing variables.
envlens is in beta, and feedback on its usability in real-world projects is encouraged.
The tool's NPM package link is provided for easy access.
Users are invited to provide feedback or report issues to help enhance envlens.