env-schema

JSON →
library 7.0.0 ·javascript
verified Jun 7, 2026

Validate environment variables against JSON Schema using Ajv with .env file support via Node.js built-in parseEnv. Version 7.0.0, actively maintained under Fastify organization. Key differentiators: leverages Node's native parseEnv (no dotenv dependency), supports custom Ajv instances and plugins, fluent-schema API, custom keywords like separator and expandEnv. Supports ESM and CJS, ships TypeScript types.