{"library":"axios-middleware","type":"library","category":null,"description":"axios-middleware is a utility library designed to simplify the creation and management of HTTP middleware for Axios, aiming to offer more flexibility and testability compared to native Axios interceptors. It allows developers to register middleware objects with methods like `onRequest`, `onResponse`, and `onResponseError` to hook into different stages of a request lifecycle. The current stable version is 0.4.0, which was released as an 'End of life' version. The package is now abandoned, with the maintainer recommending alternatives due to breaking changes in newer Axios versions and a shift in recommended HTTP client practices. It supports Node.js environments and had a peer dependency on Axios versions `>=0.17.1 <1.2.0`.","language":"javascript","status":"abandoned","version":"0.4.0","tags":["javascript","axios","request","adapter","middleware","response","http"],"last_verified":"Wed May 27","install":[{"cmd":"npm install axios-middleware","imports":["import axiosMiddleware from 'axios-middleware';","import axiosMiddleware from 'axios-middleware';\nconst middleware = new axiosMiddleware(client);","middleware.use({\n  onRequest(config) { /* ... */ },\n  onResponse(response) { /* ... */ }\n});"]},{"cmd":"yarn add axios-middleware","imports":[]},{"cmd":"pnpm add axios-middleware","imports":[]}],"homepage":"https://emileber.github.io/axios-middleware/#/","github":"https://github.com/emileber/axios-middleware","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/axios-middleware","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/axios-middleware/compatibility"}}