https://github.com/alpheusday/envkist
A utility to defer the resolution of environment variables
https://github.com/alpheusday/envkist
defer deferred env environment-variables javascript typescript utility
Last synced: about 24 hours ago
JSON representation
A utility to defer the resolution of environment variables
- Host: GitHub
- URL: https://github.com/alpheusday/envkist
- Owner: alpheusday
- License: mit
- Created: 2026-06-12T21:47:58.000Z (15 days ago)
- Default Branch: main
- Last Pushed: 2026-06-22T00:18:31.000Z (6 days ago)
- Last Synced: 2026-06-22T02:27:11.061Z (6 days ago)
- Topics: defer, deferred, env, environment-variables, javascript, typescript, utility
- Language: TypeScript
- Homepage: https://npmx.dev/envkist
- Size: 88.9 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Agents: AGENTS.md
Awesome Lists containing this project
README
# Envkist
A utility to defer the resolution of environment variables.
Instead of reading the variables directly, declare specs for them and resolve on demand.
- Support different runtimes like browser, Node.js, Deno, Bun, Cloudflare
- Declare typed specs for environment variables with optional fallback values
- Type-guard checks to determine whether a value matches a desired spec
- Resolve specs to typed values at runtime with automatic type coercion
- Generate JavaScript source strings from specs for build-time code injection
## Installation
Install this package as a dependency in the project:
```sh
# npm
npm i envkist
# Yarn
yarn add envkist
# pnpm
pnpm add envkist
# Deno
deno add npm:envkist
# Bun
bun add envkist
```
## Usage
For the usage, please refer to the [examples](./examples).
## Contributing
For contributing, please refer to the [contributing guide](./CONTRIBUTING.md).
## License
This project is licensed under the terms of the MIT license.