Code
core.code · version 2 · Transform
Run custom JavaScript over items.
Ports
| Port | Kind | Label | Required | Max connections |
|---|---|---|---|---|
| input 0 | main | |||
| output 0 | main |
Credentials
This node uses no credentials.
Parameters
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
mode | options | "runOnceForAllItems" | One of runOnceForAllItems, runOnceForEachItem. | ||
language | options | "javaScript" | One of javaScript, python. | ||
jsCode | code | "return $input.all();" | language = javaScript | JavaScript. |
Import
Exported workflows that use these node types import to this node. Unverified ranges import with a parameter warning until parity fixtures confirm them; see Migrating.
| Source type | Version range | Status | Fixtures |
|---|---|---|---|
n8n-nodes-base.code | 1 | unverified | |
n8n-nodes-base.code | 2 | unverified |