How to Download something from unpkg.com

10.4k Views Asked by At

Swiperjs has this link: https://unpkg.com/swiper/ to use their swiper locally. But how do I do download the content of this page?

I want the to have the content of this site locally. When I hit that link, I see the content of the package, but no download link. When I click save website in my browser, it downloads just some .js Files.

No, guys. Seriously. How do I do that?

I found this on that page: https://swiperjs.com/get-started

3

There are 3 best solutions below

1
On

I know this question is old, but no one really helped you and I had exactly the same problem.

This worked:

  1. Go to the download page (eg: https://unpkg.com/browse/[email protected]/)
  2. Click on the file you want to download (eg https://unpkg.com/browse/[email protected]/swiper-bundle.css)
  3. Right click on the "View Raw"-Button and click save as

I don't know why but that took me ages to figure out.

0
On
npm install swiper

Even though it says "you can directly download them from" it's actually means you can just watch what's in there. You can help yourself with npm install swiper. You get the same content as you see in the so called download link. Afterwards you can delete the package.json and move the folder out of the node_modules folder.

#falseAdvetising /rantoff

2
On

I also had this problem before, but I found an address that helped me a lot (this address : https://registery.npmjs.org/swiper/-/swiper-10.2.0.tgz) You should write package name instead swiper/ and swiper-------.tgz is the swiper version or package version I hope this answer can help you