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

Function getFromEnvironment

typescript/examples/VaasExample/url_scan.ts:10–14  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.70

Calls 1

throwErrorFunction · 0.70

Tested by

no test coverage detected