n8n-code-javascript

Execute JavaScript code within n8n Code nodes for data processing.

1|Updated Mar 28, 2026
One-click install
npx skills add https://github.com/VitorSantos-1/Meus-projetos --skill n8n-code-javascript-vitorsantos-1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: n8n-code-javascript
Source: https://github.com/VitorSantos-1/Meus-projetos/tree/main/.gemini/skills/n8n-code-javascript
Command: npx skills add https://github.com/VitorSantos-1/Meus-projetos --skill n8n-code-javascript-vitorsantos-1

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill allows users to leverage JavaScript in n8n Code nodes, enabling the execution of complex operations and logic that go beyond the capabilities of basic n8n nodes.

Core Features & Use Cases

  • JavaScript Execution: Run JavaScript code within n8n Code nodes.
  • Data Transformation: Perform complex data manipulations and transformations.
  • Custom Logic: Implement custom logic for specific workflow requirements.
  • Use Case: For example, you can use this Skill to analyze JSON data from an API response, perform calculations, or create custom conditional logic within your workflow.

Quick Start

Use the n8n-code-javascript skill to execute the following JavaScript code:

const items = $input.all();
const processed = items.map(item => ({
  json: {
    ...item.json,
    processed: true,
    timestamp: new Date().toISOString()
  }
}));
return processed;

Frequently Asked Questions about n8n-code-javascript

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run custom JavaScript logic for complex data transformation in n8n?

You run custom JavaScript logic in n8n by executing code within Code nodes, which enables advanced data processing and custom conditional workflows beyond basic nodes. This approach handles complex manipulations directly inside your automation workflow.

When do I need to use JavaScript in an n8n Code node?

You need to use JavaScript in an n8n Code node when your workflow requires complex data manipulations, custom conditional logic, or specific data transformations that basic n8n nodes cannot handle. It allows you to analyze JSON data from API responses and perform calculations.

Can I parse and modify JSON API responses using JavaScript within n8n workflows?

Yes, you can parse and modify JSON API responses using JavaScript within n8n workflows. The Code node executes custom JavaScript to analyze JSON data, perform calculations, and append new properties like timestamps to your items before passing them downstream.

Do I need prior JavaScript knowledge to implement custom logic in n8n Code nodes?

Yes, you need prior knowledge of JavaScript syntax and n8n Code node conventions to implement custom logic effectively. This prerequisite knowledge is required to execute advanced data processing and manipulate workflow items accurately.

What is the best way to handle complex data manipulations in n8n without standard nodes?

The best way to handle complex data manipulations in n8n without standard nodes is executing custom JavaScript code within Code nodes. This allows you to implement specific workflow requirements and perform operations that go beyond basic node capabilities.