UNPKG

env-fault

Version:

This is a two way to check dependencies in env file and from code which are not mapped in env. It is used as a cli tool

26 lines 1.38 kB
��**env-fault** is a CLI tool that helps you audit your environment variables. It scans your project for `process.env` usage and compares it with your `.env` file, reporting missing or unused variables. This helps prevent runtime errors and keeps your `.env` file clean. --- ## Features - Detects **missing environment variables** used in code but not defined in `.env`. - Detects **unused environment variables** defined in `.env` but never used. - Works with **JavaScript and TypeScript** projects. - Simple CLI interface for quick checks. --- ## Installation Install globally using npm: ```bash npm install -g env-fault ``` ## Credits Hrishikesh Dalal