The tool’s interface below is still in French. The interface is being translated by Google Translate.
Code node generator
Choose the transformation and the fields involved: the n8n Code node script is generated, commented and ready to paste.
Résultats
How to use the Code node generator
The n8n Code node JavaScript for the most common data transformations, commented and ready to paste.
-
Choose the transformation
Filter, rename, deduplicate…
-
Enter the fields
Involved in the transformation.
-
Copy the result
It is ready to paste wherever you need it.
About the Code node generator
In “Run Once for All Items” mode, the Code node receives all the items through $input.all() and must return an array of objects of the form { json: … }.
Many of these transformations also exist as dedicated nodes (Filter, Remove Duplicates, Split Out, Aggregate). Code is still useful for combining several operations or for custom rules.
Frequently asked questions about the Code node generator
Can I use libraries?
Luxon (DateTime) is available by default. Other modules must be allowed by the administrator of the self-hosted instance.
JavaScript or Python?
The Code node offers both. These templates are in JavaScript, the most widely used language in n8n.
Do I need an n8n account?
Not to use the tool. You then paste the result into your own n8n instance, self-hosted or n8n Cloud.
Is the tool free?
Yes, it is completely free and needs no sign-up.