Skip to content

Env

Env object is used for access of the environment variables.

Basic Usage

var env = require("core/v4/env");
var response = require("http/v4/response");

var 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
Back to top