@krazybean/envguard
v0.1.1
Published
Fail-fast environment validation with zero magic.
Downloads
69
Readme
envguard
The fastest way to make broken environment variables fail before your app does.

Why This Exists
Most apps trust process.env until something explodes in production.
A missing DATABASE_URL or invalid PORT often fails late, far from startup.
That means confusing runtime crashes, noisy logs, and slow debugging.
You should know your environment is valid the moment your app boots.
The Fix
import { loadEnv } from "envguard";
const env = loadEnv({
PORT: "number",
DATABASE_URL: "string",
});