Other libraries I’ve tried: fetch, isomorphic-fetch, request, maybe some others.
Why it’s superior: It automatically parses outputs nicely (as opposed to be having to be fed to e.g., JSON.parse()), errors are ok. Overall much less of a hassle (though using “data” instead of “body” takes some getting used to). It of course has support for promises
I prefer got to axios (and request, fetch): https://github.com/sindresorhus/got. I find the api cleaner (although that’s a matter of taste) and it’s built with typescript in mind.
Software: Axios
Need: Making requests in javascript
Other libraries I’ve tried: fetch, isomorphic-fetch, request, maybe some others.
Why it’s superior: It automatically parses outputs nicely (as opposed to be having to be fed to e.g., JSON.parse()), errors are ok. Overall much less of a hassle (though using “data” instead of “body” takes some getting used to). It of course has support for promises
I prefer got to axios (and request, fetch): https://github.com/sindresorhus/got. I find the api cleaner (although that’s a matter of taste) and it’s built with typescript in mind.
I’m sad that I’m just now learning about this.