Follow the instructions in our manual to add our package repository and then run the below command.
apt-get install halon-extras-env
yum install halon-extras-env
These functions needs to be imported from the extras://env
module path.
Get an environment variable as a string
. If not found none
is returned.
Params
- name
string
- The environment variable name
Returns
The variable as a string
. If not found none
is returned.
Example
import { getenv } from "extras://env";
echo getenv("PATH");