• A function that tries to retrieve an environment variable from the process.env object and, if it succeeds, returns it as a string value.

    Parameters

    • name: string

      The name of the environment variable to look for in process.env.

    Returns string

    A string corresponding to the environment variable's value.

    Throws

    An Error instance explaining that the variable with given name could not be found, or that it was found but it was empty.

    See

    asOptionalString

Generated using TypeDoc