Utility

NodeDescriptionInputsOutputs
app_infoOutputs the application version and data directory.version Text, data_dir Text
argsProvides a named input argument. In compiled graphs, this becomes a CLI argument; in the editor, it outputs the default value.name Text, default Anyvalue Any
batch_collectAccumulates one value per batch iteration into an output array.value Anyresults Json
batch_inputProvides items to a batch execution loop.items Jsonvalue Any, index Number, total Number
booleanOutputs a constant boolean value.value Booleanvalue Boolean
date_addAdds a duration to a timestamp.timestamp Number, amount Number, unit Textresult Number
date_diffCalculates the difference between two timestamps.a Number, b Number, unit Textresult Number
expressionEvaluates a JavaScript expression with up to four variable inputs.expression Text, a Any, b Any, c Any, d Anyresult Any
format_dateFormats a Unix timestamp into a date string.timestamp Number, format Textresult Text
image_constantOutputs a constant image from embedded base64 data.image Image
jsonOutputs a constant JSON value from a text editor.value Textresult Json
nowOutputs the current Unix timestamp in milliseconds.timestamp Number
numberOutputs a constant number.value Numbervalue Number
parse_dateParses a date string into a Unix timestamp.text Texttimestamp Number
platformOutputs the current operating system and architecture.os Text, arch Text
previewPasses through the input value unchanged.value Anyvalue Any
reroutePass-through waypoint for organizing wire layout.value Anyvalue Any
textOutputs a constant text value.value Textvalue Text
to_booleanConverts any value to a boolean.value Anyresult Boolean
to_jsonConverts input to a JSON string.value Anyresult Text
to_numberConverts any value to a number.value Anyresult Number
to_textConverts any value to text.value Anyresult Text
type_ofReturns the runtime type of the input as text.value Anyresult Text
uuidGenerates a random v4 UUID string.result Text

app_info

Outputs the application version and data directory.

Outputs:

See also: platform, io/env_var

args

Provides a named input argument. In compiled graphs, this becomes a CLI argument; in the editor, it outputs the default value.

Inputs:

Output: value (Any) — the resolved argument value

See also: text, number

batch_collect

Accumulates one value per batch iteration into an output array.

Inputs:

Output: results (Json) — accumulated array of collected values

See also: batch_input

batch_input

Provides items to a batch execution loop.

Inputs:

Outputs:

Example: items = [1,2,3]1

See also: batch_collect

boolean

Outputs a constant boolean value.

Inputs:

Output: value (Boolean) — the boolean value

date_add

Adds a duration to a timestamp.

Inputs:

Output: result (Number) — adjusted timestamp in milliseconds

Example: amount = 1, timestamp = 0, unit = days86400000

See also: date_diff, now

date_diff

Calculates the difference between two timestamps.

Inputs:

Output: result (Number) — difference in specified units (a - b)

Example: a = 86400000, b = 0, unit = days1

See also: date_add, now

expression

Evaluates a JavaScript expression with up to four variable inputs.

Inputs:

Output: result (Any) — expression result

Example: a = 10, b = 5, expression = a + b * 220 Example: a = hello, b = world, expression = a.toUpperCase() + ' ' + bHELLO world

See also: to_json, text

format_date

Formats a Unix timestamp into a date string.

Inputs:

Output: result (Text) — formatted date string

Example: format = YYYY-MM-DD, timestamp = 01970-01-01

See also: now, parse_date

image_constant

Outputs a constant image from embedded base64 data.

Output: image (Image) — the image

See also: image/load

json

Outputs a constant JSON value from a text editor.

Inputs:

Output: result (Json) — parsed JSON value

now

Outputs the current Unix timestamp in milliseconds.

Output: timestamp (Number) — current time in Unix milliseconds

See also: format_date, date_add

number

Outputs a constant number.

Inputs:

Output: value (Number) — the number value

parse_date

Parses a date string into a Unix timestamp.

Inputs:

Output: timestamp (Number) — Unix timestamp in milliseconds

Example: text = 1970-01-01T00:00:00.000Z0

See also: format_date, now

platform

Outputs the current operating system and architecture.

Outputs:

See also: app_info, io/env_var

preview

Passes through the input value unchanged.

Inputs:

Output: value (Any) — same value, unchanged

reroute

Pass-through waypoint for organizing wire layout.

Inputs:

Output: value (Any) — same value, unchanged

text

Outputs a constant text value.

Inputs:

Output: value (Text) — the text value

to_boolean

Converts any value to a boolean.

Inputs:

Output: result (Boolean) — truthy/falsy evaluation

to_json

Converts input to a JSON string.

Inputs:

Output: result (Text) — JSON string representation

to_number

Converts any value to a number.

Inputs:

Output: result (Number) — numeric representation (0 if invalid)

to_text

Converts any value to text.

Inputs:

Output: result (Text) — text representation

type_of

Returns the runtime type of the input as text.

Inputs:

Output: result (Text) — type name (string, number, etc.)

uuid

Generates a random v4 UUID string.

Output: result (Text) — v4 UUID string

See also: math/random, math/random_int