Metreeca Gear
    Preparing search index...

    Function createEnvVault

    • Creates an environment vault.

      Parameters are looked up among the environment variables of the process as each request is served, so that a variable defined after the vault was constructed is reported as well.

      Keys may be prefixed, so that parameters are namespaced within a shared environment: prefix is prepended as given, without a separator of its own.

      Parameters

      • prefix: string = ""

        The string to be prepended to the key of each parameter to be retrieved; defaults to the empty string, looking keys up as they are given

      Returns Vault

      A Vault retrieving parameters from the environment variables of the process

      While retrieving a parameter, if no variable is defined under its key