Dirigible's Logodirigible

Env Print All

This is a sample application demonstrating how to print all the variables of the environment.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
	/* globals $ */
	/* eslint-env node, dirigible */

	var env = require('core/env');
	var response = require('net/http/response');

	var allEnvVars = env.getAll();
	allEnvVars.forEach(function (envVar) {
		response.println(envVar.key + "=" + envVar.value);
	});

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