Skip to content

Instantly share code, notes, and snippets.

View 04nd01's full-sized avatar

Andi Töpfer 04nd01

  • Reutlingen, Germany
  • 16:31 (UTC +02:00)
View GitHub Profile
@04nd01
04nd01 / README.md
Last active March 25, 2024 17:53
Node Project Flow Splitter - Export flows to separate YAML files

About

This flow is intended to be used in conjunction with the projects feature and git version control. The flow will be triggered on any change to the flows.json file and will create a subdirectory with separate exports of each flow/tab contained in the current Node-RED project.

These files can then be be managed in git independently of each other (commit, revert, etc.)

Flows are stored in YAML format for improved readability when managing. Function nodes are stored multiline so they can be accurately compared line by line in diffs.

The flow uses node-red-contrib-fs-ops for file system operations.

Configuration