Importing libraries?
Options
Ambroise
Member ✭
Is it possible to import libraries? (npm, nodejs, etc.)
I'm struggling with some Dates calculations, and using an external lib would help greatly.
Best Answer
-
Hi @Ambroise I think you can use lambda with some already supported excellent date libraries from js, moments and luxon. Find below link to the docs:
https://docs.xano.com/working-with-data/lambdas-javascript/libraries-and-functions
Answers
-
I must say having moment/luxon available is a game changer. I spent hours writing a buggy script to identify current and next week numbers, but nothing beats using a properly maintained library for data management.
Rewrote my buggy code in 1h, and now it does work properly. Thumbs up! 👍
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback