request.js VS axios

Compare request.js vs axios and see what are their differences.

request.js

A lightweight, zero-dependency drop-in replacement for request.js (by therootcompany)

axios

Promise based HTTP client for the browser and node.js [Moved to: https://github.com/axios/axios] (by mzabriskie)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
request.js axios
1 11
9 87,618
- -
0.0 7.8
5 months ago over 2 years ago
JavaScript JavaScript
GNU General Public License v3.0 or later MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

request.js

Posts with mentions or reviews of request.js. We have used some of these posts to build our list of alternatives and similar projects.

axios

Posts with mentions or reviews of axios. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-03-23.
  • Know if there are pending request in axios
    1 project | /r/codehunter | 15 Oct 2022
    I'm new in ReactJS and for my ajax call I tried to use Axios library. It is awesome, but now I would like know if there is a way for know if there are pending requests in axios interceptor because, I would like, show loading overlay every ajax call (if it is not yet visibile) and remove overlay when ALL promise are resolved.For now I developed start with interceptor:
    1 project | /r/codehunter | 27 Mar 2022
    I'm new in ReactJS and for my ajax call I tried to use Axios library. It is awesome, but now I would like know if there is a way for know if there are pending requests in axios interceptor because, I would like, show loading overlay every ajax call (if it is not yet visibile) and remove overlay when ALL promise are resolved.For now I developed start with interceptor:
  • Axios interceptors and asynchronous login
    1 project | /r/codehunter | 23 Jul 2022
    (Here's a corresponding issue on github: https://github.com/mzabriskie/axios/issues/266)
  • Timeout feature in the axios library is not working
    1 project | /r/codehunter | 7 May 2022
    Axios version 0.9.1
  • Cancel async request on unmount with axios
    1 project | /r/codehunter | 7 May 2022
    I have multiple component with axios plugin for some get requests. i need some help to cancel all xhr request with axios on component unmount event in react js. but the axios cancel code is not working. its return me cancel() is not a function error.
  • Download an image using Axios and convert it to base64
    1 project | /r/codehunter | 11 Apr 2022
    Link to axios: https://github.com/mzabriskie/axios
  • What are the differences between Redux-Thunk and Redux-Promise when used with Axios apis?
    1 project | /r/codehunter | 6 Apr 2022
    In my application, the action creators mostly have async axios [ajax] calls to my back-end apis. Injecting Redux-Promise as a middleware resolves the issue of async data flow.
  • Asynchronous api calls with redux-saga
    2 projects | /r/codehunter | 23 Mar 2022
    There is a part Api.fetchUser that is not explained, thus I don't quiet understand if that is something we need to handle with libraries like axios or superagent? or is that something else. And are saga effects like call, put etc.. equivalents of get, post? if so, why are they named that way? Essentially I am trying to figure out a correct way to perform a simple post call to my api at url example.com/sessions and pass it data like { email: 'email', password: 'password' }
  • How do I test axios in Jest?
    1 project | /r/codehunter | 17 Nov 2021
    export function fetchPosts() { const request = axios.get(`${WORDPRESS\_URL}`); return { type: FETCH\_POSTS, payload: request }} How do I test Axios in this case?
  • Sending the bearer token with axios
    1 project | /r/codehunter | 13 Oct 2021
    In my react app i am using axios to perform the REST api requests.

What are some alternatives?

When comparing request.js and axios you can also consider the following projects:

ipfs - IPFS implementation in JavaScript

speed-test - Test your internet connection speed and ping using speedtest.net from the CLI

opossum - Node.js circuit breaker - fails fast ⚡️

ESLint - Find and fix problems in your JavaScript code.

hana-opensap-cloud-2020 - Exercise materials for openSAP courses targeted to application developers, SAP HANA developers, Cloud Application Programming Model developers, and SAP Business Technology Platform developers.

mime-types - The ultimate javascript content-type utility.

superagent - Ajax for Node.js and browsers (JS HTTP client). Maintained for @forwardemail, @ladjs, @spamscanner, @breejs, @cabinjs, and @lassjs.

lodash - A modern JavaScript utility library delivering modularity, performance, & extras.

mindwave - A cross-platform nodejs driver for Neurosky Mindwave headsets. Uses only bluetooth-serial. No thinkgear service needed.

nodist - Natural node.js and npm version manager for windows.

tldr-node-client - Node.js command-line client for tldr pages

throat - Throttle a collection of promise returning functions