MCPcopy Create free account
hub / github.com/GDATASoftwareAG/vaas / getFromEnvironment

Function getFromEnvironment

typescript/examples/VaasExample/main.ts:12–16  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

10}
11
12function getFromEnvironment(key: string) {
13 return (
14 process.env[key] ?? throwError(`Set ${key} in environment or .env file`)
15 );
16}
17
18async function main() {
19 const CLIENT_ID = getFromEnvironment("CLIENT_ID");

Callers 1

mainFunction · 0.70

Calls 1

throwErrorFunction · 0.70

Tested by

no test coverage detected