-
Notifications
You must be signed in to change notification settings - Fork 17
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
Use node-fetch for fetchJSONFromURL #11
Conversation
Ironically, I did use it originally. But I was wary of adding yet more stuff that I do not really need. Could you add an |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice!
I only reordered the commits so that |
Oh, completely forgot: thank you so much! |
Love it!! 🚀 🎉 |
As requested in git-for-windows/git#3040 (comment):
Actually, using
node-fetch
is a lot easier in this case. It makes mocking much easier as well. It's a very lightweight package that also adds convenience methods likeres.json()
to parse JSON responses.