env
Reads an environment variable.
env(x:string) -> string
Description
Section titled “Description”The env
function retrieves the value of an environment variable x
. If the
variable does not exist, it returns null
.
Examples
Section titled “Examples”Read the PATH
environment variable
Section titled “Read the PATH environment variable”from {x: env("PATH")}
{x: "/usr/local/bin:/usr/bin:/bin"}