MCPcopy Index your code
hub / github.com/CopilotKit/OpenTag / required

Function required

app/index.ts:50–57  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

48import { closeBrowser } from "./render/browser.js";
49
50const required = (name: string): string => {
51 const v = process.env[name];
52 if (!v) {
53 console.error(`Missing required env var: ${name}`);
54 process.exit(1);
55 }
56 return v;
57};
58
59/** True only when every named env var is set and non-empty. */
60const have = (...names: string[]): boolean =>

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected