axios-observable wraps axios to return RxJS Observables instead of Promises, enabling operators like retry, debounce, and switchMap for HTTP requests. Current stable version is 2.1.0, with peer dependencies axios ^1.2.1 and rxjs ^7.0.0. It ships TypeScript types and supports both browser and Node.js. Compared to alternatives like rxjs/ajax, it provides a familiar axios API for migration. Release cadence is low; maintained by community. Key differentiator: drop-in replacement for axios with Observable support, but does not support calling Axios as a function directly.
npm install axios-observableNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates GET and POST requests with RxJS observable, including retry operator and handling responses.
Replace direct invocation with Axios.request(config) or a method like Axios.get(url).
Use named import syntax.
Subscribe to the Observable or convert to Promise via .toPromise() (deprecated in RxJS 7).
Use lastValueFrom(axiosObservable$) or firstValueFrom(axiosObservable$).
Upgrade to >=1.1.0 for proper cancellation via unsubscribe.
Use Axios.request(config) or alias methods like Axios.get(url).
Use `import { Axios } from 'axios-observable'`.Use .subscribe() or convert to Promise with lastValueFrom().