@alokbhade/smart-env
v1.0.2
Published
Smart dotenv loader with validation, types, defaults, and error handling.
Maintainers
Readme
smart-env
A smart .env loader for Node.js projects — supports type-safe variables, default values, required checks, and developer-friendly error messages.
No more crashes from missing API_KEYs or wrong types in PORT!
🚀 Features
- ✅ Type coercion (
string,number,boolean) - ⚙️ Default values
- ❗ Required checks
- 💥 Graceful error messages
- 📦 Zero dependencies (besides
dotenv) - 🧠 Simple API, easy to use
📦 Installation
npm install @alokbhade/smart-env