# How to use shared code?

**URL:** https://discourse.nodered.org/t/how-to-use-shared-code/66907
**Category:** General
**Created:** [25 August 2022 13:19 UTC](https://discourse.nodered.org/t/how-to-use-shared-code/66907 "2022-08-25T13:19:18Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kll](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kll/32/66756_2.png) [@kll](https://discourse.nodered.org/u/kll)
#### Post date: [25 August 2022 13:19 UTC](https://discourse.nodered.org/t/how-to-use-shared-code/66907/1 "2022-08-25T13:19:18Z")

</div>

- new to node-red ( and here )

there are many posts sharing code  
also a general info how to do that:  
[https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

ahm,  
but i need info how to use such a code snippet  
in the node-red editor?  
without that a screen-print of a node open in editor helps me more  
for understanding or creating that manually.

? fast sharing work flow ?

---

<div class="post-metadata">

### Author: ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)
#### Post date: [25 August 2022 13:21 UTC](https://discourse.nodered.org/t/how-to-use-shared-code/66907/2 "2022-08-25T13:21:29Z")

</div>

Copy the code.  
Then in flow editor press ctrl I or use menu and select import.  
Paste the code in the box and press import.  
In the flow editor you should see a new flow.  
[https://nodered.org/docs/user-guide/editor/workspace/import-export](https://nodered.org/docs/user-guide/editor/workspace/import-export)

---

<div class="post-metadata">

### Author: ![kll](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kll/32/66756_2.png) [@kll](https://discourse.nodered.org/u/kll)
#### Post date: [25 August 2022 13:25 UTC](https://discourse.nodered.org/t/how-to-use-shared-code/66907/3 "2022-08-25T13:25:19Z")

</div>

that was fast... thank you, will try

---

<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: [8 September 2022 13:25 UTC](https://discourse.nodered.org/t/how-to-use-shared-code/66907/4 "2022-09-08T13:25:48Z")

</div>

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