MCPcopy
hub / github.com/formatjs/formatjs / requiredEnv

Function requiredEnv

tools/release-please/run.ts:15–21  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

13const DEFAULT_GITHUB_GRAPHQL_URL = 'https://api.github.com'
14
15function requiredEnv(name: string): string {
16 const value = process.env[name]
17 if (!value) {
18 throw new Error(`${name} is required`)
19 }
20 return value
21}
22
23function boolEnv(name: string): boolean | undefined {
24 const value = process.env[name]

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected