Function: getHost()
Function: getHost()
Get the specified env variable value as a host (IP or URL).
Param
The environment variable key.
Param
Options for retrieving the value.
Call Signature
function getHost(key): undefined | string;
Get the specified env variable value as a host (IP or URL).
Parameters
key
string
The environment variable key.
Returns
undefined
| string
The value as a host.
Param
The environment variable key.
Param
Options for retrieving the value.
Call Signature
function getHost(key, options): string;
Get the specified env variable value as a host (IP or URL).
Parameters
key
string
The environment variable key.
options
Options for retrieving the value.
Returns
string
The value as a host.
Param
The environment variable key.
Param
Options for retrieving the value.