Class EnvironmentVariablesMap

Class representing a map of environment variables

Hierarchy

  • EnvironmentVariablesMap

Constructors

Properties

Methods

Constructors

  • Creates an instance of EnvironmentVariablesMap.

    Parameters

    • Optional environmentVariables: ProcessEnv = process.env

      Object containing environment variables

    Returns EnvironmentVariablesMap

Properties

environmentVariablesMap: Map<string, string>

Map of environment variable name and values

Methods

  • Iterates over the environment variables and invokes the callback function for each environment variable

    Parameters

    • callback: ((value: string, key: string) => void)

      Callback function

        • (value: string, key: string): void
        • Parameters

          • value: string
          • key: string

          Returns void

    Returns void

  • Gets the value of the specified environment variable

    Returns

    • environment variable value or undefined

    Parameters

    • variable: string

      environment variable name

    Returns undefined | string

Generated using TypeDoc