src holds all controllers, config and api
This commit is contained in:
16
src/config/environmentVariables.js
Normal file
16
src/config/environmentVariables.js
Normal file
@@ -0,0 +1,16 @@
|
||||
class EnvironmentVariables {
|
||||
|
||||
constructor(variables) {
|
||||
this.variables = variables || process.env;
|
||||
}
|
||||
|
||||
get(variable) {
|
||||
return this.variables[variable];
|
||||
}
|
||||
|
||||
has(variable) {
|
||||
return this.get(variable) !== undefined;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = EnvironmentVariables;
|
||||
Reference in New Issue
Block a user