I am looking at getting some code into n8n. Be it as function or custom node.
Either way I am wondering how to add the necessary npm packages into my docker container. Any pointers?
All nodes got written in TypeScript. If you want JavaScript examples you can look into the published npm packages. There they are all “converted” into JavaScript.
Did you test that and it did not work? Because it should work totally fine. I even just tested it and it works totally fine for me. So I am a little bit confused about what you are writing.