verify-env-cli
Version:
Simple CLI to validate your environment variables
42 lines (28 loc) • 946 B
Markdown
# 🌿 env-checker-cli
✅ A simple and cross-platform Node.js CLI tool to check if all required environment variables are present in your `.env` file by comparing it with a `.env.example` file.
## ✨ Features
- 📂 Compares `.env` and `.env.example` files
- 🎨 Color-coded output with Chalk
- 🔥 Helpful terminal messages for quick debugging
## 📦 Installation
### Global install (recommended):
```
npm install -g env-checker-cli
```
# How To Use
### Make sure You have .env.example and .env in your project <br>
RUN ```env-checker``` in your cli to verify envoirnment variables
### .env.example
DB_HOST= <br>
DB_USER= <br>
DB_PASSWORD=
### .env (actual env)
DB_HOST=localhost <br>
DB_USER=admin
### Example Output
✅ Found DB_HOST in .env <br>
✅ Found DB_USER in .env <br>
❌ Missing DB_PASSWORD in .env <br>
⚠️ Some environment variables are missing. Please check.