A TypeScript wrapper for Axios that provides configuration-driven HTTP request management. Version 1.0.3 offers features like request deduplication, automatic empty-parameter handling, configurable error messages and loading masks, and session expiry handling. It differs from raw Axios by providing a declarative configuration approach with extensive TypeScript types, making it suitable for enterprise applications needing centralized HTTP request control. Release cadence is unknown.
npm install auto-axiosNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes auto-axios with a configuration object and makes a GET request.
Use import statements instead of require().
Ensure all fields in REQ_CONST and RET_FIELDS_CFG are provided.
Set IfCancelDupReq to 0 to disable deduplication.
Change to import autoAxios from 'auto-axios' and ensure tsconfig has "module": "ESNext" or similar.
Use default import: import autoAxios from 'auto-axios'.
Ensure you call autoAxios(config) to get the API instance, then use .request() on that instance.