Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "ParseEnvVar"

Index

Variables

Const spacingChars

spacingChars: string[] = [' ', '\f', '\n', '\r', '\t', '\v', '\u00a0', '\u1680', '\u2000-', '\u200a', '\u2028', '\u2029', '\u202f', '\u205f', '\u3000', '\ufeff']

Functions

ParseEnvVar

  • Load additional configuration from environmental variables. Pass the content of an environmental variable to the function, and it will parse it by extracting all key-value pairs in the form key=value. If necessary, single and/or double quotes can be used to escape the key or the value. Nested properties can be set using the "dot notation", as in obj.a.

    Parameters

    • str: string

      Content of the environmental variable to parse

    Returns Dictionary

    Dictionary with the configuration parsed.

isSpacing

  • isSpacing(char: string): boolean

parseToken

  • parseToken(token: any): any

Generated using TypeDoc