I stumbled upon RED.library, and would love to use it for ingress and egress functions in my node-red-contrib-hal2 node, but I can't figure out how it works.
Is there some documentation or other examples than the template and the function node source code?
More specifically I couldn't figure out how to get the library icon to show up in the UI, and how the 'fields' parameter works.
RED.library.create({
url:"templates", // where to get the data from
type:"template", // the type of object the library is for
editor:that.editor, // the field name the main text body goes to
fields:['name','format','output','syntax'],
ext: "txt"
});