Updated 'Example 2' save function section#104
Conversation
|
Thanks - from the forum discussion - should it also include the |
|
As long as the 'Name' in the function node is filled in, it picks up that name for the final node name regardless of the name you save the file as. So If I called my function 'pauls function' and saved it as 'test.js', when you run the node-red-nodegen you end up with 'node-red-contrib-pauls-function'. If you leave the function's `name' option blank, you end up with 'node-red-contrib-unnamed-function' In all case, if you use the '--name' option, like '--name fubar' you end up with node-red-contrib-fubar |
|
One oddity that I notice. In the function node - export item dropdown - 'Save to Library' is shows
but if you go look at the actual file path, the folder is functions (note it is plural).
which fails because the path needs it to use functions (plural) so somewhere it needs to change |
|
@juggledad Thank you for the notice. It was just typo which I created. I fixed it in the commit, 9c761fe. |
Proposed changes
Updated the README.md to expand on the 'Example 2' description of how to save the function node
Checklist
gruntto verify the unit tests pass