Disable the template of the subflow

Once I have designed the subflow template, how do I disable editing the subflow template? I did this to prevent the subflow template from being broken.

  • Do I need to change the source code

The only option would be to wrap you subflow as an npm module and then install it as you do other palette nodes.

https://nodered.org/docs/creating-nodes/subflow-modules

There is no way to prevent editing of a subflow template in its original form.

I tried following the documentation and found nothing to do with the package. There was no packaged subflow on the left. Here is my file, consisting of two JSON files, one JS file (which I changed to TXT for uploadability), and a screenshot of my subflow template, which basically does is read an image and return a value. What did I do wrong? The flow.json is the unpacked json file.
flow.json (2.3 KB)
readimg-subflow.txt (323 Bytes)
subflow.json (1.9 KB)
package.json (224 Bytes)

1