Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Interfaces

Type aliases

Functions

Type aliases

EnvVars

EnvVars: Record<string, string>

Functions

loadEnv

  • Loads environment variable files of a directory into process.env.

    Parameters

    • dir: string

      The directory, where the env files are stored.

    • Optional options: ILoadEnvOptions

    Returns Promise<EnvVars>

    The promise with the loaded environment variables.

loadEnvSync

  • Loads environment variable files of a directory into process.env synchronously.

    Parameters

    • dir: string

      The directory, where the env files are stored.

    • Optional options: ILoadEnvOptions

    Returns EnvVars

    The loaded environment variables.

Generated using TypeDoc