MCPcopy Create free account
hub / github.com/cutupdev/Solana-Volume-Bot / retrieveEnvVariable

Function retrieveEnvVariable

utils/utils.ts:7–14  ·  view source on GitHub ↗
(variableName: string, logger: Logger)

Source from the content-addressed store, hash-verified

5dotenv.config();
6
7export const retrieveEnvVariable = (variableName: string, logger: Logger) => {
8 const variable = process.env[variableName] || '';
9 if (!variable) {
10 console.log(`${variableName} is not set`);
11 process.exit(1);
12 }
13 return variable;
14};
15
16
17// Define the type for the JSON file content

Callers 1

constants.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected