Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
API for Retrieving Package Tarball #69
Hello! Thank you for an awesome service and all the work put towards creating it.
I am building an application which works with NPM package tarballs in a browser. Today I got stuck at the very interesting thing: NPM registry suddenly stopped sending
From the other point of view, unpkg.com does pretty much the same thing, but in case of my application, I need to retrieve a list of files at least, which was possible by downloading and extracting tarball in a browser.
So I am curious, are you interested in adding, say, new endpoint to unpkg.com which just relays a *.tgz tarball? I've checked that unpkg.com already does this, but it also extracts files and serves them. I can assist and code this change if you don't mind. I can come up with something like
Looking forward to hearing from you. Thank you.
Wow, how could I missed this. Thank you!
I figured out why I missed this: I've tried
Hm, maybe, it's worth mentioning in a description on unpkg.com? Like:
Haha, putting a slash to list a directory does pretty much everything I wanted in my web application
I've missed this in a description on unpkg.com:
Thanks! So I think I will turn my web app into "just a different UI" to unpkg.com directory listings.
Also I found that sometimes, when querying some packages for the first time (I believe) in unpkg history, like
After the first try, the package files are served properly:
And sometimes it happens to files themselves: