@grandlinex/core
    Preparing search index...

    Class EnvStore

    Configuration options for initializing an EnvStoreC instance.

    The configuration object accepts the following properties:

    • log – A CoreLogChannel instance used for logging.
    • pathOverride – Optional custom path that overrides the default store location.
    • envFilePath – Optional path to a .env file from which environment variables can be loaded.
    • loadFromLocalEnv – Optional boolean indicating whether to load variables from the local environment.
    • appName – Optional name of the application associated with the store.

    All properties except log are optional. The object is passed to the constructor of EnvStoreC to configure its behavior.

    Implements

    Index
    log: CoreLogChannel | undefined
    store: Map<string, string>
    • Parameters

      • key: string
      • defaultValue: string = ''

      Returns string

    • Retrieves the value of a global folder constant.

      Parameters

      • folder: string

        The name of the folder to retrieve.

      Returns string

      The value of the global folder constant.