Extends Axios with concurrency limits and automatic retry via ES6 Proxy. Wraps promise-queue-plus to provide maxConcurrent and retry options without adding new API surface – usage remains identical to Axios. Current stable version 0.0.8, no recent releases. Key differentiator: no extra methods, just augmented config. Requires Axios as peer dependency. Suited for Node.js or browser environments where Axios is already used and need simple rate limiting or retry logic.
npm install axios-extraNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows creating an instance with maxConcurrent and retry, per-request queueOptions, and accessing the underlying queue control methods.
Ensure runtime supports ES6 Proxy or use a polyfill.
Always create an instance with axios.create() to access requestQueue.
Replace require('axios-extra/create') with import { create } from 'axios-extra'.Use maxConcurrent > 0. Use 1 for sequential or a higher number for concurrency.
Account for retries when setting maxConcurrent to avoid unintended serialization.
Ensure the argument to create() is a valid Axios instance (e.g., axios.create()). Use import axios from 'axios' to get a fresh instance.
Use const instance = axios.create({}); instance.requestQueue.Change to import { create } from 'axios-extra'.requestQueue is an object with methods like start, stop, clear – do not call it as a function.