Composable Axios adapter enhancers for cache, throttle, and retry. Current stable version is 4.0.0, with monthly releases and active maintenance. Key differentiators: composable pipeline design, TypeScript support, per-request overrides via module augmentation, and lightweight with no framework lock-in. Supports Node >=18 and axios >=1.0.0.
npm install axios-extensionsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to compose all three enhancers (cache, throttle, retry) into a single Axios adapter and use per-request overrides.
Switch to ESM projects or use dynamic import() in CJS. Alternatively, stay on v3.x which supports both CJS and ESM.
Update Node to >=18 and axios to >=1.0.0.
Use named imports: import { cacheAdapterEnhancer, throttleAdapterEnhancer, retryAdapterEnhancer } from 'axios-extensions'.Use axios v0.19.1+ or v1.x.
Use import or dynamic import(). Example: import { cacheAdapterEnhancer } from 'axios-extensions'Run npm install axios-extensions and verify the import is: import { cacheAdapterEnhancer } from 'axios-extensions'Pass a custom adapter or mock. Example: const mockAdapter = (config) => axios.defaults.adapter(config)