--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
For more options, visit https://groups.google.com/d/optout.
What I meant to get at – so this is just a simple snippet store then – not a means to make a single copy of a function globally available. Just clarifying?
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/i24WzUoRgTE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.
Correct, a snippet store is a good description. Not a library in the programmatic sense.
N
--
I see, thanks for warning me. Good to know what you are planing for the future. Although I don't' think that building a library in setting.js (functionGlobalContext?) is a ideal solution. That means I've to restart node-red every time I change a function in setting.js?
--
Julian,
No, I was thinking of being able to edit that utility code in the Node-RED editor and not force the user to restart each time they had to update them. If the settings file was the only way to do it, then it would be pretty unusable in cloud environments where you can't easily edit files in disk.
But regardless, nothing we have plans to look at currently.
Nick
--
--
If you want to package your node(s) but distribute them locally / privately, you can create them as any other node, then use npm pack (rather than npm publish, to create a .tgz file that you can copy around and then use npm install yourfile.tgz (from within your user directory as per Nick's note) to install as per any other node.