var xyz = require("XYZ");
xyz.doSomething(msg.payload);Neil,
Here's a link to the Writing Functions docs that shows how to do this with the 'OS' module as an example.
http://nodered.org/docs/writing-functions#global-context
Nick
you can't do this directly for security reasons, but you can check your settings files, in the global context you can import external libraries that you'll then be able to use in a function node.
--
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 an 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.