MCPcopy Create free account
hub / github.com/remix-run/react-router / requireEnv

Function requireEnv

scripts/pr.ts:259–266  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

257}
258
259function requireEnv(name: string): string {
260 let value = process.env[name];
261 if (!value) {
262 console.error(`Missing required env var: ${name}`);
263 process.exit(1);
264 }
265 return value;
266}

Callers 1

runChecksFunction · 0.85

Calls 2

errorMethod · 0.80
exitMethod · 0.45

Tested by

no test coverage detected