├── .githooks └── pre-commit ├── .github └── workflows │ └── test.yaml ├── .gitignore ├── .npmrc ├── LICENSE ├── README.md ├── env.local.js ├── env.test.js ├── package.json ├── pnpm-lock.yaml ├── src ├── app │ └── index.ts └── env │ ├── createEnv.test.ts │ ├── defineEnv.ts │ ├── env.ts │ └── setEnv.js └── tsconfig.json /.githooks/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | npx --no-install lint-staged 3 | -------------------------------------------------------------------------------- /.github/workflows/test.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/type-safe-env/HEAD/.github/workflows/test.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/type-safe-env/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | use-node-version=22.7.0 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/type-safe-env/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/type-safe-env/HEAD/README.md -------------------------------------------------------------------------------- /env.local.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/type-safe-env/HEAD/env.local.js -------------------------------------------------------------------------------- /env.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/type-safe-env/HEAD/env.test.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/type-safe-env/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/type-safe-env/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /src/app/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/type-safe-env/HEAD/src/app/index.ts -------------------------------------------------------------------------------- /src/env/createEnv.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/type-safe-env/HEAD/src/env/createEnv.test.ts -------------------------------------------------------------------------------- /src/env/defineEnv.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/type-safe-env/HEAD/src/env/defineEnv.ts -------------------------------------------------------------------------------- /src/env/env.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/type-safe-env/HEAD/src/env/env.ts -------------------------------------------------------------------------------- /src/env/setEnv.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/type-safe-env/HEAD/src/env/setEnv.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azu/type-safe-env/HEAD/tsconfig.json --------------------------------------------------------------------------------