mirror of
https://github.com/n8n-io/n8n-docs.git
synced 2025-11-20 17:48:34 +00:00
2.3 KiB
2.3 KiB
| description |
|---|
| Use code in your n8n workflows, and view other developer resources. |
Code in n8n
n8n is a low-code tool. This means you can do a lot without code, then add code when needed.
JavaScript in your workflows
There are two places in n8n where you can use code.
-
Expressions
Use expressions to transform data in your nodes. You can use JavaScript in expressions, as well as n8n's built-in methods and variables.
-
Code node
The Code node allows you to add JavaScript to your workflow.
This section of the documentation covers:
- Built-in methods and variables.
- Expressions examples:
- Introduction to expressions in n8n.
- Supported libraries: Luxon (for data and time) and JMESPath (for working with JSON).
- JavaScript examples:
- Introduction to JavaScript in n8n.
- Supported libraries: Luxon (for data and time) and JMESPath (for working with JSON).
- Checking incoming data.
- Get the number of items returned by the last node.
- Working with binary data: Get the binary data buffer and Split binary file data into individual items.
- Using the Code node.
Other developer resources
-
The n8n API
n8n provides an API, allowing you to programmatically perform many of the same tasks as you can in the GUI. There's an n8n API node to access the API in your workflows.
-
Self-host
You can self-host n8n. This keeps your data on your own infrastructure.