How to import a package in Lambda function

Options
Georges Duverger
Georges Duverger Trusted Xano Expert
Hey, folks. I need to transform a crontab expression (e.g., “5 4 * * *”) into a timestamp of the next occurence. I couldn't think of a way to do so with existing Xano functions so I tried to do it with a Lambda function. My first, naive attempt was to use https://www.npmjs.com/package/cron-parser but I can't figure out how to import packages. Could you maybe put me toward the right direction, or let me know if there is a better way to solve for that use case?

Comments