UNPKG

@freemework/hosting

Version:

Hosting library of the Freemework Project.

23 lines 865 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FConfigurationEnv = void 0; const common_1 = require("@freemework/common"); class FConfigurationEnv extends common_1.FConfigurationDictionary { constructor() { const sourceURI = new URL("configuration:env"); const dict = {}; Object.entries(process.env).forEach(([name, value]) => { // A little bit magic for double underscore "__" (translate it to ".") if (!name.startsWith("__") && name.includes("__")) { name = name.split("__").join("."); } if (value === undefined) { value = ""; } dict[name] = value; }); super(sourceURI, dict); } } exports.FConfigurationEnv = FConfigurationEnv; //# sourceMappingURL=FConfigurationEnv.js.map