Axios wrapper (v2.0.8) that extends Axios with automatic retry on configurable HTTP status codes, token refresh via callback, and structured request/response logging with timing metadata. Ships TypeScript declarations. Retry is limited to one attempt per status match. Alternatives like axios-retry offer more retry customization but lack integrated token refresh and logging. Suitable for microservice clients and SDKs. Maintained by a single developer; release frequency is low.
npm install axios-masterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates axios-master with retry, token refresh, and custom logger.
If you need multiple retries, wrap the call in your own retry loop.
Always provide both arguments.
Set shouldRetryStatus to at least one status code.
Use default import for the request function.
Replace log: true with a logger callback to avoid future breakage.
npm install axios-master && ensure tsconfig.json includes node_modules types ("compilerOptions": { "types": ["node"] }).Use const axiosMaster = require('axios-master').default or import axiosMaster from 'axios-master'.npm install axios-master@latest
Add 403 to shouldRetryStatus: shouldRetryStatus: [401, 403, 500].