'How to Download something from unpkg.com

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



Solution 1:[1]

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.

Solution 2:[2]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Lisa
Solution 2 Lunex