Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "node_modules/@types/dotenv/index.d"

Index

Variables

Const load

load: config
deprecated

since v7.0.0 Use config instead.

Functions

config

  • Loads .env file contents into process.env. Example: 'KEY=value' becomes { parsed: { KEY: 'value' } }

    Parameters

    Returns DotenvConfigOutput

    an object with a parsed key if successful or error key if an error occurred

parse

  • Parses a string or buffer in the .env file format into an object.

    Parameters

    • src: string | Buffer

      contents to be parsed

    • Optional options: DotenvParseOptions

      additional options

    Returns DotenvParseOutput

    an object with keys and values based on src

Generated using TypeDoc