Is there a way for "depackaging" a flow from a node module?

Hello there,

I packaged a Node-RED subflow into a node module and put it into a repository. Fortunately, I have the original subflow .json file available to make changes.
But what should I do if I lost it and wanted to make changes? I cannot modify the subflow if I install it via npm.

Thank you in advance!

I may be wrong, but I don't believe there is any way to do that.
I stand corrected. :slight_smile:

Hi @kitkat159

if you have the flow json from the module, you can modify it back to being a regular subflow you can them import into the editor.

The docs here explain how to modify the exported json to what is needed for the module. You will need to do the reverse...
https://nodered.org/docs/creating-nodes/subflow-modules#add-your-subflow-json

Thanks for your reply! :slight_smile:
I actually considered this idea, but I was thinking there might be an even better way to approach this. Still, I appreciate your input.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.