Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
10
function
getFromEnvironment(key: string) {
11
return
(
12
process.env[key] ?? throwError(`Set ${key} in environment or .env file`)
13
);
14
}
15
16
async
function
main() {
17
const
CLIENT_ID = getFromEnvironment(
"CLIENT_ID"
);
Callers
1
main
Function · 0.70
Calls
1
throwError
Function · 0.70
Tested by
no test coverage detected