Loading a library from a variable

GET https://postman-echo.com/get

For this request, we copied the code for the DayJS CDN library from here. Next, paste the entire code from that page into a collection variable. For this example, we saved it as dayjs_code in our collection variables. Finally, we run an IIFE(Immediately Invoked Function Expression) which gives you access to the dayjs methods in the sandbox.