Axios-easy is a modular TypeScript library (v0.2.6) that extends axios with composable interceptors and utilities for standardizing HTTP request/response handling. It provides plug-and-play interceptors for authentication, error handling, payload normalization, parameter serialization, and file processing. Currently in early development (pre-1.0), it offers tree-shakable imports, i18n support for error messages, full TypeScript types, and unit tests. Its key differentiators include a lego-like composition model, easy integration with openapi-ts-request, and minimal overhead via selective interceptor usage.
npm install axios-easyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates an axios client with default request and response interceptors, plus localized error messages.
Use the correct subpath import for each interceptor individually.
Upgrade axios to >=1.12.0 in your package.json.
Pin to exact version and test upgrades carefully.
Run 'npm install axios-easy' and ensure 'moduleResolution' is 'node' or 'bundler' in tsconfig.json.
Double-check the subpath and export name in the documentation; ensure the interceptor is imported as a named export.
Install axios >=1.12.0: 'npm install axios@latest'.