JavaScript
Runs JavaScript in a sandboxed V8 isolate (no network, no bindings). The `args` input is bound to a local `args` array; the last expression — or an explicit `return` — becomes the result. `console.log` is captured to `stdout`; `console.warn` / `console.error` to `stderr`.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| script | string | Yes | The JavaScript script to execute |
| args | json | No | Command line arguments (array of strings) to pass to the script |
| timeout | number | No | Execution timeout in milliseconds (default: 5000) |
Outputs
| Name | Type | Description |
|---|---|---|
| result | json | The result of the script execution (return value or last expression) |
| stdout | string | Captured console.log output |
| stderr | string | Captured console.error output |
| error | string | Error message if script execution failed |
Related Nodes in Developer Tools
HTTP Request
Receives an HTTP request and returns the response synchronously.
HTTP Webhook
Receives an HTTP webhook and executes the workflow asynchronously.
Fetch
Fetch data from a URL using the Fetch API.
Database Query
Executes a SELECT query on a database and returns the results.
Database Execute
Executes INSERT, UPDATE, or DELETE operations on a database.
Conditional Fork
Splits the workflow into two branches based on a boolean condition. The 'true' output is taken if the condition is true, 'false' if false.
Conditional Join
Joins two mutually exclusive branches ('true' and 'false') into a single flow. Emits the value from the active branch. Errors if both or neither are provided.
Send Queue Message
Sends a single message to a message queue.
Receive Queue Message
Receives and extracts the message payload from a queue.
Aggregate Items
Collects multiple values into a repeated output array
Extract Item
Extracts a single item from a repeated input at the specified index