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

Function getFromEnvironment

typescript/tests/test.ts:25–29  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

23}
24
25function getFromEnvironment(key: string) {
26 return (
27 process.env[key] ?? throwError(`Set ${key} in environment or .env file`)
28 );
29}
30
31function delay(ms: number) {
32 return new Promise((resolve) => setTimeout(resolve, ms));

Callers 1

test.tsFile · 0.70

Calls 1

throwErrorFunction · 0.70

Tested by

no test coverage detected