omgeving
v0.3.2
Published
Type-safe environment variables in Bun and Node
Readme
omgeving
Type-safe environment variables in Bun and Node
Install
pnpm/npm/bun i omgeving
# or
yarn add omgevingExample
const { PORT } = cleanEnv({ PORT: port({ devDefault: 3000 }) });If you are using Node, you need to pass a --env-file argument to where your .env file is:
node --env-file=.env app.js