envzen-express
v0.1.3
Published
Express/Fastify adapter for envzen
Maintainers
Readme
envzen-express
Express / Fastify middleware adapter for EnvZen.
Installation
npm install envzen-core envzen-expressUsage
import express from 'express'
import { envGuardMiddleware } from 'envzen-express'
import { schema } from './env.js'
const app = express()
app.use(envGuardMiddleware(schema))Validation runs on the first request. On failure the error is forwarded to your framework's error handler via next(err).
License
MIT
