The value key gets in the text of a .env file, and whether it is assigned at all. The last
assignment wins. The result lives in temporary storage.
- text: the contents of a
.envfile. - key: the variable name.
dotenv_value :: (text: string, key: string) -> (string, bool)
The value key gets in the text of a .env file, and whether it is assigned at all. The last
assignment wins. The result lives in temporary storage.
Parameters
- text: string
- the contents of a
.envfile. - key: string
- the variable name.
Returns
- string
- bool