developit / unfetch

🐕 Bare minimum 500b fetch polyfill.
https://npm.im/unfetch
MIT License
5.71k stars 201 forks source link

where to download the library? #80

Closed pwFoo closed 6 years ago

pwFoo commented 6 years ago

I see a src directory, but where is a dist / lib directory with something like unfetch.js or unfetch.min.js?

lucianopf commented 6 years ago

@pwFoo that's usually not versioned, although it's not here at github if you do npm i unfetch and than import like import fetch from 'unfetch' you're basically requiring the file dist/unfetch.js ref

If you're actually looking to request this file without using npm itself you can use unpkg and use both urls: https://unpkg.com/unfetch or https://unpkg.com/unfetch@3.0.0/dist/unfetch.js to a fixed version.

developit commented 6 years ago

Thanks for the awesome breakdown @lucianopf :)

Yup - for any library really, I'd recommend looking at unpkg.com when you want to download things rather than Github:

https://unpkg.com/unfetch/ (notice the trailing slash).

developit commented 6 years ago

looks like it's already explained in the Readme, so I'll close this one out.