9
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 12 Jan 2025
9 points (84.6% liked)
JavaScript
2372 readers
1 users here now
founded 2 years ago
MODERATORS
try opening that cdn link you sent in a browser. it'll open a directory listing for the package. you can see some examples of what urls to use on the main jsdelivr page.
I imagine the url you want is probably something like https://cdn.jsdelivr.net/npm/[email protected]/dist/index.js (note the extra path on the end and also a specific pinned version instead of latest so new versions don't break things)
i already use what urls!
if u want here is source code