You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+33-2Lines changed: 33 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ Elevate your TypeScript workflow with Zagora: a sleek, bulletproof toolkit for f
17
17
- 🏠 **Familiar:** Echoes remote-RPC patterns from oRPC and tRPC, but focused on libraries, not apps.
18
18
- ⚖️ **Unopinionated:** Zero assumptions - no routers, middlewares, or network concepts.
19
19
- 🎁 **No Unwrapping:** Direct access to results, unlike `neverthrow` - no extra steps required.
20
+
- 🎁 **EnvVars Handling:** Handling and validation of environment variables.
20
21
- 🤖 **Agents Ready:** Rules for LLMs with subtle nuances and where to be careful. [Read/get here](./AGENTS.md)
21
22
22
23
_This library is product of 3+ months of dedication and passion, after 10 years in Open Source._<br>
@@ -589,23 +590,53 @@ const res = await proc(22);
589
590
590
591
You can also provide the cache through `.callable({ cache })`. That is useful, if you want to provide it at "execution place", not at "definition place". For example, you'd have a set of procedures written at one place, then throgh "router" or some object that combiens them you want to call them at a `Request/Response` server handler.
591
592
593
+
### Environment Variables
592
594
593
-
### Options Object
595
+
You can provide the runtime env vars (either `process.env` or `import.meta.env`) through the second argument of `.env(schema, envs)` or at later stage through the `.callable({ env })` call. Either way, they will be validated. The parsed variables will be accessible through the handler's `options` object.
0 commit comments