getNodeEnvironment
talawa-api • Docs
talawa-api / setup/getNodeEnvironment / getNodeEnvironment
Function: getNodeEnvironment()
> getNodeEnvironment(): Promise
<string
>
Get the node environment
The function getNodeEnvironment
is an asynchronous function that prompts the user to select a Node
environment (either "development" or "production") and returns the selected environment as a string.
Returns
Promise
<string
>
a Promise that resolves to a string representing the selected Node environment.