From 0c5a76b39145a1b00d97359311723fe0465f6c6c Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Thu, 30 Aug 2018 22:42:30 +0100 Subject: [PATCH] Add env.get to Function node --- nodes/core/core/80-function.html | 4 +++- nodes/core/core/80-function.js | 7 ++++++ test/nodes/core/core/80-function_spec.js | 30 ++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 1 deletion(-) diff --git a/nodes/core/core/80-function.html b/nodes/core/core/80-function.html index e406e9d16..13ef20db0 100644 --- a/nodes/core/core/80-function.html +++ b/nodes/core/core/80-function.html @@ -53,12 +53,14 @@

The Catch node can also be used to handle errors. To invoke a Catch node, pass msg as a second argument to node.error:

node.error("Error",msg);
-

Referring Node Information

+

Accessing Node Information

In the function block, id and name of the node can be referenced using the following properties:

+

Using environment variables

+

Environment variables can be accessed using env.get("MY_ENV_VAR").