Npm package(for example "moment JS")

Can we use any npm package(for example “moment JS”) with require keyword in the function?

No, we cant use moment.

1 Like

is there any way to encrypt with js code?? without npm packages

Yes we have encryption/decryption in cloud.ym
We have crypto module exposed for the same
we can use crypto in functions like this
ymLib.crypto.<crypto_utility>

e.g. ymLib.crypto.randomUUID()

1 Like

Not working giving error ‘ymLib’ is not defined, do you have any other reference code.

where I can get more info about function

ymLib.crypto.<crypto_utility>

e.g. ymLib.crypto.randomUUID()