Can be use datejs?

I think I know the answer, but maybe I am wrong. I would like to use datejs (or any other library) in function node is it possible, if not (what I assume) maybe you would consider allowing it someway?

If you are self-hosting you can use momentJS. To do so, set the env variable NODE_FUNCTION_ALLOW_EXTERNAL as shown below:


Then, in the function node, you can do:

const moment = require("moment")

1 Like

It worked, thank you so much. Can I kindly ask how it works? I mean, momentjs is downloaded from web/already in docker image. Is somewhere list of supported JS libraries. Could I import the own library or just from the list?

1 Like