UNPKG

env-sentinel

Version:

Zero-dependency tool that auto-validates .env files against schema.env, with optional fallback and secure warnings.

5 lines (4 loc) 213 B
export function validateBooleanValue(key, value) { const lowerValue = value.toLowerCase(); return ['true', 'false'].includes(lowerValue) ? true : `Invalid boolean for ${key}, must be 'true' or 'false'`; }