I'm using node-red for some time now and just started to create custom nodes.
Because of good documentation I was able to get pretty far up till now.
I created 3 custom nodes so far. These are passing json objects.
To create these objects I use multiple classes. This works fine as long as the class definition is inside the .js file.
But I whould like to use these class definitions in multiple nodes. Copying them to the single file seems to be worst idea
So is there any clever way to do a class definition so multiple nodes are able to use the classes? I was thinking maybe in the global context. but I didn't find anythink usefull on the web.