@upenha/env
v1.0.3
Published
Environment variable type verification and validation with Zod
Maintainers
Readme
Upenha ENV
Inspired by T3 Env
Setup
- Install the package
npm i @upenha/env dotenv- Create an environment file (in this case im using src/env.ts)
import { config } from 'dotenv';
config()
import { createEnv } from '@upenha/env';
export const env = createEnv({
// your zod schema for environment
})You need an
.envfile too, so don't forget to create one
