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

**URL:** https://discourse.nodered.org/t/is-there-a-way-for-depackaging-a-flow-from-a-node-module/77780
**Category:** General
**Created:** [21 April 2023 08:31 UTC](https://discourse.nodered.org/t/is-there-a-way-for-depackaging-a-flow-from-a-node-module/77780 "2023-04-21T08:31:07Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![kitkat159](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kitkat159/32/66066_2.png) [@kitkat159](https://discourse.nodered.org/u/kitkat159)
#### Post date: [21 April 2023 08:31 UTC](https://discourse.nodered.org/t/is-there-a-way-for-depackaging-a-flow-from-a-node-module/77780/1 "2023-04-21T08:31:08Z")

</div>

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!

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [21 April 2023 08:32 UTC](https://discourse.nodered.org/t/is-there-a-way-for-depackaging-a-flow-from-a-node-module/77780/2 "2023-04-21T08:32:25Z")

</div>

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

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [21 April 2023 08:39 UTC](https://discourse.nodered.org/t/is-there-a-way-for-depackaging-a-flow-from-a-node-module/77780/3 "2023-04-21T08:39:01Z")

</div>

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](https://nodered.org/docs/creating-nodes/subflow-modules#add-your-subflow-json)

---

<div class="post-metadata">

### Author: ![kitkat159](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kitkat159/32/66066_2.png) [@kitkat159](https://discourse.nodered.org/u/kitkat159)
#### Post date: [4 May 2023 13:24 UTC](https://discourse.nodered.org/t/is-there-a-way-for-depackaging-a-flow-from-a-node-module/77780/4 "2023-05-04T13:24:28Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [18 May 2023 13:25 UTC](https://discourse.nodered.org/t/is-there-a-way-for-depackaging-a-flow-from-a-node-module/77780/5 "2023-05-18T13:25:06Z")

</div>

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