Skip to content

Env

Env object is used for access of the environment variables.

Basic Usage

import { env } from "sdk/core";
import { response } from "sdk/http";

let os = env.get("os.name");
response.println("[OS]: " + os);

response.flush();
response.close();

Functions


Function Description Returns
get(key) Returns the value per key from the environments variables string
list() Returns the list of the environments variables in JSON formatted string string