Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Code

core.code · version 2 · Transform

Run custom JavaScript over items.

Ports

PortKindLabelRequiredMax connections
input 0main
output 0main

Credentials

This node uses no credentials.

Parameters

NameTypeDefaultRequiredShown whenDescription
modeoptions"runOnceForAllItems"One of runOnceForAllItems, runOnceForEachItem.
languageoptions"javaScript"One of javaScript, python.
jsCodecode"return $input.all();"language = javaScriptJavaScript.

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 typeVersion rangeStatusFixtures
n8n-nodes-base.code1unverified
n8n-nodes-base.code2unverified