A component to run JavaScript
params
. params
is a dictionary and names of variables are the dictionary keys. For example,
if there is an input parameter named “name” you can access to title value using params.name
steps
. steps
is a dictionary and the names of steps are the dictionary keys. For example,
if there is a step named “summary” you can access its produced value using steps.summary.output
.
Or if there is a code step, you can access its produced output using steps.python.transformed
, where ‘python’ represents the default variable name for the python code step, which you can change.
'{{secrets.chains_name_of_your_api_key}}'
.
Deno
runtime (the default), you can import packages using an import
expression with a service like esm.sh
. For example, to use the change-case
package:
import
statements, or require
.javascript
, you can access the step output using javascript.transformed
.
Note that a step name is different from the step title. Step titles can be found on the top left
of steps. A step name is shown on the bottom left, in smaller font and highlighted green.
Code execution timed out
error. Keep in mind that JavaScript snippet execution time
cannot exceed 15 minutes.