-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use Open.url with native "fetch"? #292
Comments
did you ever get this working? |
Nope, I went with |
It would make sense to move to fetch (ideally with backward compatibility for request) |
I was also looking for that because |
Open to PRs, if not I will find time to do this at some point, hopefully soon! |
I just stumbled on this issue. It's not a complete solution, but I have a start of an implementation with fetch in this issue #309 (comment). I needs better error handling which I am struggling with. |
I was able to hack something together using got but found it unreliable for my use case bc of the location of the central directory at the end of the zip file. |
May I ask whether the .url method would have any benefits compared to .buffer()? Am I write that the received directory variable would be of same size regardless whether .url() or .buffer() is used? |
How do I use Open.url with native "fetch" on Node.js v20.9.0 ?
The text was updated successfully, but these errors were encountered: