Creates a throttling wrapper around axios to limit the rate of HTTP requests. Version 2.1.2 is the latest stable release. It wraps axios with a throttling mechanism that can block requests based on a custom stay function, making it useful for rate-limiting or conditional request suppression. Unlike general throttling libraries, it is specifically designed for axios and integrates with axios configs. The library is minimal and unmaintained (last commit in 2019), offering basic throttling features without modern ESM support.
npm install axios-throttledNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating an AxiosT instance with throttling configuration, making a throttled request, and handling the response or error.
Use require() instead of import.
Check for undefined return or use requestRaw() which always returns axios response.
Consider migrating to axios-rate-limit or custom interceptor.
Always provide a query (URL string or axios config object).
Use const AxiosT = require('axios-throttled');
const axiosT = new AxiosT(config);Ensure AxiosT is instantiated with 'new' and config.query is valid.