MCPcopy
hub / github.com/CapSoftware/Cap / get

Function get

packages/env/build.ts:32–37  ·  view source on GitHub ↗
(_, key)

Source from the content-addressed store, hash-verified

30
31export const buildEnv = new Proxy({} as typeof _env, {
32 get(_, key) {
33 if (typeof key !== "string") return undefined;
34 if (!_env) _env = create();
35
36 return _env[key as keyof typeof _env];
37 },
38});

Callers

nothing calls this directly

Calls 1

createFunction · 0.85

Tested by

no test coverage detected