Documentation for RED.library?

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.

1 Like

Library Store API : Node-RED (nodered.org)

Thanks, but is that really the same thing as

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"
            });

...in the template node source code?

Sorry, don't know, I've not used the feature yet. I've only used the examples folder in my nodes.

Yes please! I’m trying to use this feature in my node development but it’s trial and error without docs.

I'll try to get it documented in the next week or so - holidays allowing.

1 Like

Thank you and Merry Christmas!

Excellent, thank you! Merry Christmas!

@knolleary - might you be able to drop a note here when the docs are available? No rush, just don’t want to miss it. :grin:

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