Here’s the Deal
Slant is powered by a community that helps you make informed decisions. Tell us what you’re passionate about to get your personalized feed and help others.
When comparing fetch vs axios, the Slant community recommends axios for most people. In the question“What are the best node.js libraries for http requests?” axios is ranked 1st while fetch is ranked 4th. The most important reason people chose axios is:
Maintained as of January 2018, see: https://github.com/axios/axios/graphs/contributors.
Ranked in these QuestionsQuestion Ranking
Common Questions
Other Questions
No other questions
Pros
Pro Promise based
Pro Follows the standard Fetch API
node-fetch implements the same Fetch API that's standardized for use in browsers.
Pro Still maintained
Maintained as of January 2018, see: https://github.com/axios/axios/graphs/contributors.
Pro Runs both in server and browser
Node.js server only.
Pro Easy to migrate to
Very similar to reqwest and jQuery.ajax.
Pro Supports IE8+
Supports probably all major browsers.
Cons
No cons yet!
No cons yet!