loading
loading
Utilities
Execute a Node.js script.
overview
execute-nodejs runs a JavaScript file as a node in your workflow. When the catalog tool you need does not exist, or two stages do not line up, you drop in a script that reshapes data, calls an API, or applies custom logic, and the rest of the pipeline keeps flowing around it. It is the general-purpose escape hatch for anything Node can do.
Because it takes a script file as input and writes a file and a folder of results, it slots between other nodes like any tool. Read the previous stage's output, transform it in JavaScript, and emit something the next stage can consume, all without leaving the workflow or standing up separate infrastructure.
In a Trickest Utilities workflow, execute-nodejs is the place for custom glue. Common jobs include normalizing JSON between tools, deduplicating or merging lists, enriching results from an HTTP API, and producing a custom report format.
source github.com/trickest
use cases
Read the output of one stage, transform it in JavaScript to the exact shape the next tool wants, and write it back so two otherwise-incompatible nodes connect cleanly.
Use Node's HTTP client to enrich results from a third-party service, then emit the combined data for downstream nodes to consume.
When no existing tool covers a step, encode the logic as a Node script so the workflow keeps running end to end without manual intervention.
Aggregate findings from earlier stages and render them into the exact JSON, CSV, or HTML layout a report or alert step expects.
reference
| Name | Type | Flag | Description |
|---|---|---|---|
| script | FILE | · | JavaScript code file to execute. |
Showing key inputs. execute-nodejs exposes 1 inputs in total.
example
# execute-nodejs: run transform.js against a host list# inputs: script=transform.jsnode transform.js # writes api.example.com and app.example.com linesapi.example.comapp.example.comstaging.example.comdev.example.commail.example.comcdn.example.comvpn.example.comwww.example.comguidance
Use execute-nodejs when a workflow needs custom logic, data reshaping, or an API call that no catalog tool provides, and you are comfortable in JavaScript. For Python logic, reach for the equivalent Python execution node instead.
Purpose-built JSON transformer. Lighter for pure JSON reshaping where you do not need full scripting.
Flattens JSON into greppable lines. Good for quick filtering, not general logic.
Renders JSON to an HTML view. A fixed transform versus arbitrary Node code.
faq
related
Import, export, and link workflow data with Airtable.
Decode Android APK files into smali sources and resources.
Check a file's values against conditions and exit with a matching code.
Extract all hosted zones from AWS Route53.
Output file lines by batch size, given START_LINE and END_LINE.
Extract a batch range from a file's lines or a folder's files, with parallel processing.
Raw data feeds execute-nodejs, which runs a JavaScript file to transform it and writes the reshaped result as a queryable output.
Facts on this page come from the live Trickest tool library.