UNPKG

container.ts

Version:
25 lines 780 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** Environment variables class. */ class Environment { constructor(_variables = {}) { this._variables = _variables; } /** Environment variables object. */ get variables() { return this._variables; } /** Returns a copy of environment. */ copy(variables = {}) { return new Environment(Object.assign(variables, this.variables)); } /** Get an environment variable value or undefined. */ get(name) { return this._variables[name]; } /** Set an environment variable value. */ set(name, value) { this._variables[name] = value; return this; } } exports.Environment = Environment; //# sourceMappingURL=Environment.js.map