What problem does it solve?
This Skill addresses the challenge of writing effective, safe, and maintainable JavaScript code within n8n Code nodes, enabling users to perform complex data transformations and API interactions seamlessly.
Core Features & Use Cases
- Flexible Data Access: Use
$input.all(), $input.first(), and $input.item to handle various data processing scenarios.
- Best Practice Patterns: Provides validated code patterns for aggregation, filtering, JSON querying, and report generation.
- Error Prevention: Includes guidance on safe coding practices, null checks, and return formatting to prevent common workflow errors.
- Comprehensive Reference: Leverages n8n's built-in functions like
$helpers.httpRequest(), DateTime from Luxon, and $jmespath() for advanced data querying.
Quick Start
Enter your data, then access it with $input.all() or $input.first() to perform your transformation logic directly within the node. Make sure to return the data as an array of objects with a json property.